Commit Graph

5635 Commits

Author SHA1 Message Date
Ryan Dwyer bacc2b92fb Remove unused global variables 2023-05-09 21:26:43 +10:00
Ryan Dwyer 01ce3dc218 Remove g_SndDisabled and g_SndMp3Enabled 2023-05-09 19:35:30 +10:00
Ryan Dwyer bb4d3458c5 Replace array copies with static arrays 2023-05-09 19:21:00 +10:00
Ryan Dwyer ae4687917f Use inline floor and ceil instructions 2023-05-09 17:22:15 +10:00
Ryan Dwyer 6e8249b8bd Tidy up gfxmemory.c 2023-05-09 11:32:05 +10:00
Ryan Dwyer f39432946c Remove arg parser 2023-05-09 11:18:23 +10:00
Ryan Dwyer bcaea5d7e9 Move functions from utils.c, collisionutils.c, crc.c and gfxreplace.c into the files where they're called 2023-05-08 23:27:23 +10:00
Ryan Dwyer 77148cc62e Fix light glares 2023-05-08 22:21:49 +10:00
Ryan Dwyer 2c7cc32d5e Fix inefficient string management 2023-05-08 22:07:42 +10:00
Ryan Dwyer c693fd78b1 Fix texture corruption on Extraction thumbnail 2023-05-08 22:00:36 +10:00
Ryan Dwyer 4a9075d9f7 Replace strcpy(buf, "") 2023-05-08 21:29:42 +10:00
Ryan Dwyer 0449bfa4d8 Remove __FILE__ and __LINE__ function arguments 2023-05-08 21:25:20 +10:00
Ryan Dwyer d16ea9cef0 Make functions static where possible 2023-05-08 21:17:21 +10:00
Ryan Dwyer 86feae85c1 Remove unused global variables 2023-05-06 22:28:50 +10:00
Ryan Dwyer 726ac90f4f Use uncached memory for gfx data writes 2023-05-06 21:29:07 +10:00
Ryan Dwyer 414c2c6b16 Replace objFindByTagId with a direct array lookup 2023-05-06 21:24:20 +10:00
Ryan Dwyer 863b5d7da6 Fix early mine detonation in G5 Building 2023-05-06 15:06:21 +10:00
Ryan Dwyer 261be8d702 Improve roomproplist code 2023-05-04 22:33:52 +10:00
Ryan Dwyer 9a56b3ce36 Fix random aimer taps when there's no controller samples 2023-05-04 22:04:04 +10:00
Ryan Dwyer 681fc1111e Avoid iterating stage table where possible 2023-05-04 19:37:20 +10:00
Ryan Dwyer c3c2617e7b Optimise room mtx functions 2023-05-04 19:09:07 +10:00
Ryan Dwyer b1516774d4 Fix room matrix bug 2023-05-04 18:44:35 +10:00
Ryan Dwyer 039469fcdc Update roommtx function names to same ones used in master 2023-05-04 18:27:17 +10:00
Ryan Dwyer 6b016ffd4f Show bottleneck on profile output 2023-05-03 23:01:00 +10:00
Ryan Dwyer 7ef3e9d009 Introduce triple buffer and remove RDP freeze 2023-05-02 22:50:56 +10:00
Ryan Dwyer 60947bfdfd Remove hi-res video option 2023-05-02 14:16:53 +10:00
Ryan Dwyer b18d1259fe Make profiler report RSP, RDP and thread timing accurately 2023-05-01 18:48:04 +10:00
Ryan Dwyer d74f0bce56 Fix CCTV still working when destroyed 2023-04-24 00:00:20 +10:00
Ryan Dwyer 4b97a3845f Fix solo handicaps being reset after configuring 2023-04-23 23:56:52 +10:00
Ryan Dwyer 361e1e9458 Fix roomproplist corruption 2023-04-23 23:53:51 +10:00
Ryan Dwyer 94d81e5a74 Refactor roomproplistchunks
* When deregistering, fill the slot with the last propnum and maintain a count to avoid having to scan to find an empty slot when registering
* Assume propnum isn't already registered when registering
* Assume propnums only exist once per room when deregistering
* Allow up to 16 propnums per chunk instead of 7
* roomGetProps: Don't check for duplicate propnums in first room
* Use separate `next` property to store index of next chunk instead of using propnums[7]
2023-01-08 17:04:54 +10:00
Ryan Dwyer 246d30ce04 RoomMtx: Prevent cache fighting in multiplayer and remove need to tick roommtxes 2023-01-07 17:08:30 +10:00
Ryan Dwyer 5fe7cd37f6 Only render unarmed when attacking 2023-01-07 14:34:28 +10:00
Ryan Dwyer e031b11a64 Remove special cover 2023-01-05 22:44:59 +10:00
Ryan Dwyer 4f5a8f0a10 Tweak cover JSON format and set names for remaining cover flags 2023-01-05 22:30:47 +10:00
Ryan Dwyer 32780a9f67 Refactor MP match end checks 2023-01-01 01:24:39 +10:00
Ryan Dwyer 1a279d5446 Fix crash relating to dangerous props 2022-12-31 20:00:27 +10:00
Ryan Dwyer bec089ea11 Don't implicitly enable a door prop when AI scripting attempts to open a disabled door 2022-12-31 19:26:55 +10:00
Ryan Dwyer 1d94dbfe1b Reinstate cctv 2022-12-31 13:51:57 +10:00
Ryan Dwyer 6ef917d5d1 Fix lifts 2022-11-17 17:55:27 +10:00
Ryan Dwyer c0276247fa Fix room matrices in 2 player 2022-11-17 17:46:01 +10:00
Ryan Dwyer 6181870b38 Refactor objective checks
* Use a dirty flag so statuses can be recalculated only when they might have changed
* Remove support for unused criteria types
* Re-ID the status constants so the objective status can be the minimum of the criteria statuses
* Merge multiple complete flags into one criteria item
* Merge multiple fail flags into one criteria item
* Use a g_AnyObjectiveFailed variable so the objectives failed AI doesn't have to iterate them
2022-11-17 17:36:19 +10:00
Ryan Dwyer d8137e2d6b Improve dangerous props code 2022-11-16 23:16:07 +10:00
Ryan Dwyer 42c22131cb Improve proxy detection code 2022-11-16 22:37:32 +10:00
Ryan Dwyer 4221ae63ce Refactor prop onscreen flags in propsTickPlayer 2022-11-16 22:03:42 +10:00
Ryan Dwyer c2847f0e14 Allow mines that are placed in setup and debris to be paused 2022-11-16 21:34:11 +10:00
Ryan Dwyer e6b02156bb Pause door props when closed and backgrounded 2022-11-16 21:08:15 +10:00
Ryan Dwyer bd009f7290 Move every-tick logic from propsTick into backgroundable logic in propsTickPlayer where possible 2022-11-16 21:05:33 +10:00
Ryan Dwyer c588072b28 Fix order of bgchr AI execution 2022-11-16 21:01:44 +10:00
Ryan Dwyer 7a9b061894 Fix crash when equipping Mauler in multiplayer 2022-11-16 17:20:36 +10:00