Commit graph

1452 commits

Author SHA1 Message Date
Clownacy
ea9952c2d0 Clean-up PixTone code a little
This is still ASM-accurate
2020-08-05 16:56:25 +01:00
Clownacy
6fd6a416cd Fix another out-of-bounds array access
This one involves the Spur.
2020-07-15 16:51:11 +01:00
Clownacy
f7a8a260a4 Added OTHER_RECT struct
Unifies the weird not-RECTs
2020-07-08 19:30:11 +01:00
Clownacy
bfc255478c Remove unit-conversion macros 2020-07-08 19:15:11 +01:00
Clownacy
13985fb349 Added SoundMode enum
Controls whether a PlaySoundObject call start, stops, or loops a
sound
2020-07-08 18:52:32 +01:00
Clownacy
53c8d2e55c Remove invalid comment 2020-07-08 17:01:44 +01:00
Clownacy
ccf79e2559 Code style tweak 2020-07-08 16:54:31 +01:00
Clownacy
5652756129 Deobfuscate some 'tiles-to-units' calculations 2020-07-08 16:46:28 +01:00
Clownacy
b6af751f7b Convert NPC 129's rects to decimal 2020-07-08 16:41:49 +01:00
Clownacy
92ce7aeb5d Use fixed-size types for the WAV header struct
This matches the WAVEFORMATEX struct
2020-07-08 16:35:09 +01:00
Clownacy
d6bbb013f9 Deobfuscate some BOOLs 2020-07-08 02:57:00 +01:00
Clownacy
788e5ea2d8 Add some sound fixes and documentation 2020-07-08 02:07:22 +01:00
Clownacy
85ccda7829 Add missing functions to header 2020-07-08 01:57:15 +01:00
Clownacy
220f48a98b Backport some undefined-behaviour fixes 2020-07-06 15:11:45 +01:00
Clownacy
ffa4b16376 Deobfustate some NPC_MAX values 2020-07-02 20:20:12 +01:00
Clownacy
f7b428752f
Merge pull request #137 from GabrielRavier/accurateFixBugsTscBufferSizeCrash
accurate:  Do not crash when TSC files are too big with FIX_BUGS
2020-07-02 15:52:53 +01:00
Clownacy
90de32a83d
Fix bugs in bugfix
These checks would leak the FILE*. Also did some pedantic style tweaks.
2020-07-02 15:52:37 +01:00
Gabriel Ravier
ff25ddfef0 src/TextScr.cpp: Do not crash when TSC files are too big with FIX_BUGS
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-07-02 16:43:13 +02:00
Clownacy
143f3b9646 Backport header improvements from #133
Thanks to GabrielRavier for these
2020-07-02 14:42:53 +01:00
Clownacy
5983b8e234 Don't mark out as static
Causes it to be put in the wrong part of the EXE for some reason,
even though we know from the Mac port that it *was* static.
2020-07-01 21:57:57 +01:00
Clownacy
c99d38274d
Merge pull request #132 from GabrielRavier/accurateAddStddefWhenNeeded
Add stddef.h when needed
2020-06-30 22:56:07 +01:00
Gabriel Ravier
bede1a16f5 src/Sound.cpp: Remove duplicate stddef.h include
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-06-30 23:48:34 +02:00
Gabriel Ravier
08062e9823 Merge branch 'accurate' into accurateAddStddefWhenNeeded
# Conflicts:
#	src/Sound.cpp
2020-06-30 23:47:23 +02:00
Clownacy
1bf110269c Correct some constants
Have been incorrect since f43a3c1130
2020-06-30 21:30:56 +01:00
Gabriel Ravier
3092c34681 src: Add #include <stddef.h> where appropriate in order to have NULL/size_t and others from the proper header
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-06-30 18:26:44 +02:00
Clownacy
353798bf41
Merge pull request #131 from GabrielRavier/accurateMinimizeIncludes
Remove unnecessary includes
2020-06-30 17:25:31 +01:00
Gabriel Ravier
a62141e185 src: Added back stddef.h where accurate to get NULL/size_t properly (stdio.h provides them, but it's for file I/O, not essential definitions and types)
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-06-30 01:52:38 +02:00
Gabriel Ravier
66e4995135 src: Remove unnecessary includes
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-06-30 00:12:17 +02:00
Clownacy
a5bf854408 Document gMC.equip
All raw values have been replaced with enums
2020-06-27 19:27:57 +01:00
Clownacy
d9e01225a9 Update URLs in readme 2020-06-23 16:30:12 +01:00
Clownacy
93852242f4 Just use 'CSE2' everywhere, instead of the full name
Since Nicalis reobtained the 'Cave Story' trademark back in April,
it looks like we're going to have to go the route of the Wine project
and change what the abbreviation is short for...

Can't Sue Everyone 2?
Clownacy Saga, Episode 2?
Code-Stealing Eyesore 2?
2020-06-22 17:25:34 +01:00
Clownacy
49b4ffb722 Clear-up some README wording 2020-06-15 23:34:44 +01:00
Clownacy
8247aa30fc Fix a typo in PHILOSOPHY.md 2020-06-05 15:41:25 +01:00
Clownacy
1df1248e2e Clarify enhanced-lite's purpose a little
I realised GZDoom is a pretty poor comparison, since that thing goes
out of its way to add stuff like swimming, crouching, and jumping.

Boom specifically prioritised preserving the 'feel' of Doom, which I
think makes it much closer to CSE2E.
2020-06-05 14:38:28 +01:00
Clownacy
b951632b17 Ignore enhanced-lite config file
Thanks to jozsefsallai for pointing this out in #121
2020-05-20 19:02:39 +01:00
Clownacy
2d26904b6c Add enhanced-lite branch to the readme 2020-05-09 14:09:35 +01:00
Clownacy
9a9f520947 Add the enhanced-lite branch to PHILOSOPHY.md 2020-05-09 13:54:08 +01:00
Clownacy
70a3badc0d Cleanup 2020-05-04 18:21:44 +01:00
Clownacy
4000615b45 This is also likely more accurate to the source 2020-05-03 22:13:28 +01:00
Clownacy
124aebaaa2 This is likely more accurate to the original code 2020-05-03 22:07:18 +01:00
Clownacy
e1af3336aa Fix compilation 2020-05-03 22:05:39 +01:00
Clownacy
496a50c272 More static function stuff
This time I'm using the Linux debug data
2020-05-03 21:52:37 +01:00
Clownacy
95b29bb516 Mark some functions as static
Mac debug data confirms these
2020-05-03 21:52:36 +01:00
Clownacy
486cf37161 Mark a char as signed
Might revert, not sure. I'm just doing this for consistency with
other bits of code.
2020-05-03 21:52:29 +01:00
Clownacy
03250d62a0 Make variables more accurate
This commit changes which variables are static: the Mac (and
presumably the Linux) debug data tells you what variables are static,
by prefixing their names with double_underscores.

The variable names themselves also hint at this: global variables are
prefixed with 'g', and use upper-camelcase, while static variables
use whatever_you_call_this.
2020-05-03 20:28:56 +01:00
Clownacy
3dd904adf6
Merge pull request #114 from GabrielRavier/accurateAddCMake3_10Support
Accurate: Change minimum CMake version from 3.12 to 3.5.1
2020-04-27 18:41:13 +01:00
Clownacy
43c0b670ab Figured out the mystery values in RestoreSurfaces
They're ASCII characters.
2020-04-26 00:07:45 +01:00
Clownacy
46ca9b4d4a aesthetic 2020-04-20 13:08:12 +01:00
Clownacy
5d309db3ad Ignore ConfigCSE2E.dat 2020-04-20 13:07:37 +01:00
Clownacy
dec481a8e0 And another 2020-04-20 13:05:21 +01:00