Commit Graph

6575 Commits

Author SHA1 Message Date
Ryan Dwyer 301dfd8df6 Fix crash in disguise training 2022-10-31 17:34:02 +10:00
Ryan Dwyer 3aa6674330 Fix array overflow in chrnum lookup 2022-10-31 17:34:02 +10:00
Ryan Dwyer 1215434097 Replace chrnum bisection with array lookup 2022-10-31 17:34:02 +10:00
Ryan Dwyer 9668be14ba Create chr_is_deadish AI command 2022-10-31 17:34:02 +10:00
Ryan Dwyer 1f05cfdc2e Bypass some logic when BG is preloaded 2022-10-31 17:34:02 +10:00
Ryan Dwyer ac1cde8b0d Precompute return values for RANDOMFRAC() 2022-10-31 17:34:02 +10:00
Ryan Dwyer 010a6851bf Fix excessive float usage in sightDrawZoom 2022-10-31 17:34:02 +10:00
Ryan Dwyer 8b19b8a018 Replace individual x/y/z copies with struct copies where possible 2022-10-31 17:34:02 +10:00
Ryan Dwyer 227beacec1 Replace some unnecessary mtc1/swc1 instructions in mtxasm.s 2022-10-31 17:34:02 +10:00
Ryan Dwyer 4ea746b37d Fix camspy 2022-10-31 17:34:02 +10:00
Ryan Dwyer 38dddf0c4f Don't calculate lookahead unnecessarily 2022-10-31 17:34:02 +10:00
Ryan Dwyer f800a69143 Enable preloading for non-weapon inventory items 2022-10-31 17:34:02 +10:00
Ryan Dwyer 3c117b2157 Simplify BG preloading code 2022-10-31 17:34:02 +10:00
Ryan Dwyer 4899685569 Write a readme 2022-10-31 17:34:02 +10:00
Ryan Dwyer dcf1de3f87 Preload the stage's natural weapons 2022-10-31 17:34:02 +10:00
Ryan Dwyer 15fc4a0a7c Fix a BG preload bug and make other related improvements 2022-10-31 17:34:02 +10:00
Ryan Dwyer 266163bcfe Replace BG visibility scripts with C implementation 2022-10-31 17:34:02 +10:00
Ryan Dwyer 0528fe0539 Re-ID AI commands so the most common commands can be identified by the first byte only 2022-10-31 17:34:01 +10:00
Ryan Dwyer 22cd732d8a Remove another VI mode 2022-10-31 17:34:01 +10:00
Ryan Dwyer c1cab6e03e Make AI command handlers able to be inlined 2022-10-31 17:34:01 +10:00
Ryan Dwyer 420d5ee990 Remove unused VI modes 2022-10-31 17:34:01 +10:00
Ryan Dwyer 66f99b50d6 Read pad data directly rather than copying it to the stack 2022-10-31 17:34:01 +10:00
Ryan Dwyer 0b87a5af75 Store pads in their full unpacked format 2022-10-31 17:34:01 +10:00
Ryan Dwyer 0bd58592c4 Change chr AI timers to integers 2022-10-31 17:34:01 +10:00
Ryan Dwyer 04ca114465 Remove excessive reads and writes to g_Vars properties in AI loop 2022-10-31 17:34:01 +10:00
Ryan Dwyer cb0b99d28a Preload BG rooms where possible 2022-10-31 17:34:01 +10:00
Ryan Dwyer e16567742d Place game segment after bss to make more room for memp 2022-10-31 17:34:01 +10:00
Ryan Dwyer bef9668e68 Preprocess ailists to convert goto-labels to goto-offsets 2022-10-31 17:34:01 +10:00
Ryan Dwyer 0c948fdce9 Use pointers for aioffsets 2022-10-31 17:34:01 +10:00
Ryan Dwyer e36d700bad Remove dprint AI command 2022-10-31 17:34:01 +10:00
Ryan Dwyer 827a2f75ee Cache the playercount instead of calculating it many times 2022-10-31 17:34:01 +10:00
Ryan Dwyer 6db8be6d14 Remove code relating to 4MB 2022-10-31 17:34:01 +10:00
Ryan Dwyer c9f4fef2d6 Remove camdraw code 2022-10-31 17:34:01 +10:00
Ryan Dwyer 2995dc4a88 Disable crash and rmon threads 2022-10-31 17:34:01 +10:00
Ryan Dwyer 7c6805c3e2 Make the expansion pak required and disable virtual memory 2022-10-31 17:34:01 +10:00
Ryan Dwyer 4e9d88fab9 Print unused memory to HUD 2022-10-31 17:34:01 +10:00
Ryan Dwyer d89fef7ea9 Implement frame rate graph 2022-10-31 17:33:44 +10:00
Ryan Dwyer fbb5065ebe Add MIT license 2022-10-31 17:33:38 +10:00
Ryan Dwyer 32d529e9b5 Avoid UB in bondview's var800a41c0 2022-10-31 17:31:02 +10:00
Ryan Dwyer e3d77e8086 Avoid some potential UB in bgBuildTables 2022-10-31 17:30:51 +10:00
Ryan Dwyer 39c00dc465 Remove src/generated during clean 2022-10-22 19:12:06 +10:00
Ryan Dwyer 178a779878 Revert "Simplify tile assets - repo clones may need to run make extract again"
This reverts commit 306613e462.

It turns out we do actually need tiles to be built using the asset
manager :\
2022-10-22 19:06:17 +10:00
Ryan Dwyer b159e01edc Improve naming and documentation of inventory data 2022-10-22 18:42:45 +10:00
Ryan Dwyer 4d04f1f282 ntsc-beta: Decompile sndLoadSound 2022-10-21 21:53:10 +10:00
Ryan Dwyer 82d2d500b6 ntsc-beta: Decompile sndLoadSfxCtl 2022-10-21 21:46:14 +10:00
Ryan Dwyer a7721463bf ntsc-beta: Decompile joysTick 2022-10-21 19:31:03 +10:00
Ryan Dwyer 306613e462 Simplify tile assets - repo clones may need to run make extract again 2022-10-21 19:21:50 +10:00
Ryan Dwyer e28b361cb6 ntsc-beta: Decompile joyStopRumble 2022-10-21 00:07:40 +10:00
Ryan Dwyer 43e354a316 ntsc-beta: Decompile botPickupProp 2022-10-20 23:52:15 +10:00
Ryan Dwyer 724aecb04e ntsc-beta: Decompile bviewDrawHorizonScanner 2022-10-20 22:27:46 +10:00