* Use Brender macro's in MungeClipPlane
* gNet_mode is an enum
* Create macro defining the area where pedestrians are considered active
* When respawning pedestrians, only animate the pedestrians that are in view
* Make the gl renderer aware of BR_MATF_TWO_SIDED and BR_MATF_ALWAYS_VISIBLE
Prevent the gl renderer from culling back-faced textures if the material
is two-sided or always visible.
Due to the wrong order of vertices in the model, oil spill object is
subject to back face culling, preventing it from being rendered. Set
the oil spill material as two-sided, allowing it to be displayed.
Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
* Add enum for splatpack xmas: they have a different demo screen (splatpack demo has smk, xmas demo has a flic)
* Simplify sign
* Fix DecodeLine2 + decode_datatxt.py
* Compare against pointers
* Use float cos and sin functions
* Implement StopGroovidelic
* Implement TestAutoSpecialVolume
* Use floats in SmokeCircle related functions
* gOffset is initialized to 0
* Don't stub DrawTheGlow: every crash is an opportunity to find a bug
* Decrease indentation of LineBoxColl (no functional change)
* Use BrVector3XXX macro's in GetBoundsEdge (no functional change)
* Fix address sanitzier warning when using APC
* Use BrVector3XXX macro in GetPlaneNormal (no functional change)
* Get rid of global is_full_screen variable
* Add command line argument to start DethRace in full screen mode
* cmake: move DETHRACE_FIX_BUGS cmake option to top cmake script
* Add DETHRACE_FIX_BUGS macro when DETHRACE_FIX_BUGS cmake variable is defined
* harness: prescale mouse pointer so it works seamlessly with hires
* Fix IWANTTOFIDDLE
* Add comments for the fixes
* Revert "Don't stub DrawTheGlow: every crash is an opportunity to find a bug"
This reverts commit 3345649201.
Fix OG bug, where APC car would have its vertices and faces removed,
preventing it from being rendered in the wreck gallery.
Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
Don't reset skidmark normal to the horizontal plane, but rather use the
one received from the wheel.
This fixes incorrect rendering of skidmarks on sloped surfaces.
Signed-off-by: Artur Rojek <contact@artur-rojek.eu>
* Remove magic numbers from CalculateFrameRate
* Move conditionals in MungeCarGraphics a bit
* Move code around in LoadCar + less magic numbers
* Tweak conditionals of ReallocExtraPathSections
* Use BrVector3Copy in PointVisibleFromHere
* tCar_spec->gear is an int
* Re-use variable in SearchForSection
* Use floats in CalcGetNearPlayerRoute
* Use floats in ControlBoundFunkGroovePlus
* Align pointers to multiple of pointer size in ShiftBoundGrooveFunks
* Change conditionals in AddProximities + assign the_face at start of iteration
* Move conditionals around in AddGroovidelics
* Move code around in GrooveThisDelic
* Assign the_groove each loop iteration in GrooveThoseDelics
* Compare against NULL in MungeWindscreen
* No need to check for pCount <= 0 in GetALineAndInterpretCommand
* racestrt.c: fix out-of-bounds write in DrawGrid
Catched by undefined behavior sanitizer
* opponent.c: use cops array to access 'finished_for_this_race' property
* displays.c: Fix left shift of negative value in DoHeadups
Found by using he undefined behavior sanitizer
* Switch variable names in DoDamageScreen
* Fix SEGFAULT due to reading out of bounds (we were using wrong index)
* Use floats instead of doubles
* Implement all flicplay.c functions
* Compare ptr against NULL
* Implement TotalRepair
* Implement some edit functions
* Implement actor/special volume related edit functions
* Implement MungeSpecialVolume
* Implement a few depth functions
* Fix location of spawned actors (when SHIFT was not pressed)
Co-authored-by: Dethrace Engineering Department <78985374+dethrace-labs@users.noreply.github.com>
* Change type of DRPixelmapCleverText2 to char*
* Fix warnings emitted due to -Wreturn-type
* Fix BR_ONE_LS redefinition warning
* Fix warnings emitted by -Wparentheses
* Tag FatalError and PDFatalError with noreturn attribute, fixing -Wreturn-type warnings
* Fix string type of TransBrPixelmapText~
* Fix a few -Wmaybe-uninitialized warnings
* Fix -Wformat and -Wpointer-sign warnings in test_datafile.c
* Fix -Wshift-negative-value warning
* Fix -Wpointer-sign warning
* chdir is declared with attribute 'warn_unused_result'
* Fix -Wmaybe-uninitialized warning
* Fix -Warray-bounds warning
* Fix -Wmaybe-unitialized warning
* Fix -Wmaybe-unitialized warning
* Fix -Wmaybe-unitialized warning
* Fix -Wmaybe-unitialized warnings
* Fix a few -Wmaybe-uninitialized warnings
* cmake: unify warnings amongst gcc and clang
* fatalerror_fixup
* Fix -Wabsolute-value warning
* Fix all warnings when building with MinGW on Windows
* Fix warning caused by -Wimplicit-fallthrough
* Fix warnings caused by -Wcast-function-type
Fixes these types of warnings:
cast between incompatible function types from ‘br_uint_32 (*)(br_actor *, void *)’ {aka ‘unsigned int (*)(struct br_actor *, void *)’} to ‘intptr_t (*)(br_actor *, void *)’ {aka ‘long int (*)(struct br_actor *, void *)’} [-Wcast-function-type]
* Fix warning caused by -Wmissing-field-initializers
* Normalize direction_v vector and store in displacement