* 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
Dropping a point in pedestrian edit mode would segfault otherwise.
CARM95.EXE also segfaults.
How to reproduce:
- enable Pedestrian edit mode
- F10 or F11 (+a few other)
* Move resource header check out of UserToRes to allow BrResCheck to fail
* Add BrResCheck and BrResSize to brender.h header (used while debugging)
* Skip OG code behavior of setting row_bytes to align to a 4 byte boundary