Commit Graph

6625 Commits

Author SHA1 Message Date
Alexandre-Xavier Labonté-Lamoureux be755f356b Avoid square root using chrGetSquaredDistanceToPad 2022-11-12 02:40:49 -05:00
Alexandre-Xavier Labonté-Lamoureux 26b61b1914 Use naming 'sqdist' for variables where distance in squared 2022-11-12 02:40:49 -05:00
Alexandre-Xavier Labonté-Lamoureux 1e24f14104 Avoid sqrtf with constants 2022-11-12 02:40:49 -05:00
Alexandre-Xavier Labonté-Lamoureux 1cd79f6012 nbomb: square root operation is commutative with exponentiation 2022-11-12 02:40:49 -05:00
Alexandre-Xavier Labonté-Lamoureux a92e1c6fe7 bwalkCalculateNewPositionWithPush: call sqrtf at the last possible moment 2022-11-12 02:40:49 -05:00
Alexandre-Xavier Labonté-Lamoureux 0bc2c5a53e sky0f122ce8: Remove useless sqrtf as the result tends towards 1.0f 2022-11-12 02:40:49 -05:00
Ryan Dwyer a914ba4168 Fix and improve active shards logic 2022-11-12 17:25:36 +10:00
Ryan Dwyer bbc7388e6d Introduce g_BeamsActive so we can avoid iterating props 2022-11-12 17:03:58 +10:00
Ryan Dwyer f2645ce428 Remove var80084040 2022-11-12 15:25:24 +10:00
Ryan Dwyer fe7ddc0aca Introduce an easier way to do profiling 2022-11-12 13:43:58 +10:00
Ryan Dwyer fa9272d6f7 Don't call functions that simply return a literal value 2022-11-12 11:09:15 +10:00
Ryan Dwyer d8c278364a Remove unused functions 2022-11-12 10:01:28 +10:00
Ryan Dwyer bfa06b8c3e Remove const char strings and osSyncPrintf calls 2022-11-11 23:55:48 +10:00
Ryan Dwyer 0fd7673c1b Don't call no-op functions 2022-11-11 23:44:20 +10:00
Ryan Dwyer 5c21de55e6 Remove stub files 2022-11-11 23:23:38 +10:00
Ryan Dwyer 1f64f59da1 Remove references to g_Vars.fourmeg2player 2022-11-11 23:20:48 +10:00
Ryan Dwyer 40c4dd9130 Remove rmon, crash, fault, videbug and debughud 2022-11-11 23:18:45 +10:00
Ryan Dwyer 64155bcb15 Remove references to IS4MB and IS8MB 2022-11-11 23:09:09 +10:00
Ryan Dwyer 0714f1cb21 Remove VERSION ifdefs from most files 2022-11-11 22:49:55 +10:00
Ryan Dwyer 9a871c7a65 Remove MATCHING ifdefs 2022-11-11 17:42:42 +10:00
Ryan Dwyer 4ac661160c Remove PIRACYCHECKS ifdefs 2022-11-11 17:35:45 +10:00
Ryan Dwyer 3619bcb2f2 Don't recalculate all solo handicaps on every tick 2022-11-11 17:27:58 +10:00
Ryan Dwyer 73bfbded3d Remove unreachable g_Jpn code 2022-11-11 17:18:12 +10:00
Ryan Dwyer 0d169c5214 Remove mainOverrideVariable 2022-11-11 17:11:00 +10:00
Ryan Dwyer 02f7077d16 Improve prop tick logic 2022-11-11 08:28:57 +10:00
Ryan Dwyer cfe4e51df8 Change prop->type to a bitfield and change checks to use a bitmask 2022-11-10 23:33:50 +10:00
Ryan Dwyer 5c9b1b1ac1 Improve prop pickup checks further 2022-11-10 22:21:00 +10:00
Ryan Dwyer b56b6ab229 Improve order of prop tickup tests 2022-11-10 22:07:34 +10:00
Ryan Dwyer 7d710aa109 Remove magnetattracttime 2022-11-10 21:38:16 +10:00
Ryan Dwyer 3b0066b74e Remove debug 2022-11-10 21:36:05 +10:00
Ryan Dwyer 44aedd817d Remove unused object types 2022-11-10 21:24:16 +10:00
Ryan Dwyer e334bb9101 Fix Mtxf in setupCreateProps 2022-11-10 21:06:17 +10:00
Ryan Dwyer 6a798d769b Remove support for hats 2022-11-10 21:03:41 +10:00
Ryan Dwyer b8b183a687 Remove code references to STAGE_TEST_OLD 2022-11-10 20:56:50 +10:00
Ryan Dwyer 4fc36d7d3f Remove pointless idle-checking code from lvTick 2022-11-10 20:53:38 +10:00
Ryan Dwyer d5a19238e1 Don't overwrite bss when extracting game segment 2022-11-10 20:48:04 +10:00
Ryan Dwyer 2443e9350f Align g_SndCache 2022-11-10 20:46:13 +10:00
Ryan Dwyer ba0eb5b656 Fix Defection programmer 2022-11-06 21:36:29 +10:00
Ryan Dwyer 77c07dd6df Profiling: Fix AUD figure 2022-11-05 09:17:02 +10:00
Ryan Dwyer 05afabf037 Only calculate lookingatprop when necessary 2022-11-04 08:15:21 +10:00
Ryan Dwyer 30f5d24c15 Disable antialias in render modes 2022-11-03 22:50:05 +10:00
Ryan Dwyer 895215c332 Fix some ailists not running 2022-11-03 21:22:21 +10:00
Ryan Dwyer 4e797820ea Introduce profiling 2022-11-03 21:14:25 +10:00
Ryan Dwyer aabec4d103 Allow 1xxx ailists to be completely terminated 2022-11-03 08:28:36 +10:00
Ryan Dwyer 4632c3113f Improve logic for objectives failed HUD message
* Roll up all the objective failed commands into a new "any objective failed" one
* Remove wasteful looping logic from ailist
* Use existing statuses array instead of recalculating every objective on every frame
2022-11-02 21:40:23 +10:00
Ryan Dwyer 6385e137d0 Remove unused global ailists 2022-11-02 21:16:18 +10:00
Ryan Dwyer 2c0b5711c1 Pass ailist pointers around instead of ailist IDs to avoid runtime bisection 2022-11-02 20:38:01 +10:00
Ryan Dwyer b838521081 Remove truck, heli and aiplayerdeadlist 2022-11-02 17:45:14 +10:00
Ryan Dwyer 7841b59eef Introduce ai2asm 2022-11-02 17:35:19 +10:00
Ryan Dwyer a5b4d0017b Fix portal problem in Skedar Ruins and WAR 2022-10-31 17:34:02 +10:00