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