Filippos Karapetis
5724a1f385
CRYO: Fix MSVC warnings
...
- Add missing default switch cases
- Specify packing for structs with pointers to complex objects
- Change literal suffixes to uppercase
- Replace uses of malloc() with new []
2019-05-27 14:53:38 +03:00
D G Turner
733cb7dcc7
CRYO: Fix Debug Statement Format String Compiler Warnings.
...
Some of the debug statements in the engine compute values or sizes of
various items by pointer subtraction (which is probably not recommended;
I am not sure if this is why some of the structs were previous packed as
noted and removed by snover).
In any case, the subtractions should result in relatively small integer
values, but using these into debug() calls with printf style format
strings can cause warnings from the compiler with the format specifier
depending on the underlying pointer sizes.
To avoid these, have recast these to int. If this does cause any issues,
they should be limited to debug() value changes and thus not a
functional issue with the engine, which can be corrected by the engine
developers.
2018-07-29 03:32:40 +01:00
Bastien Bouclet
779f2f549a
CRYO: Push down the AD includes
2018-05-01 12:48:05 +02:00
Adrian Frühwirth
a20f90cbb7
JANITORIAL: Fix formatting
2018-04-22 00:56:21 +02:00
Adrian Frühwirth
9bee9e1ba6
JANITORIAL: Fix whitespace
2018-04-19 12:08:31 +02:00
Colin Snover
10f1eab3c9
CRYO: Stop packing struct containing pointers
...
This struct packing causes the pointer-to-member-function to become
unaligned, and does not seem necessary in any way.
Closes gh-1081.
2018-01-12 00:44:48 -06:00
Strangerke
e4b7f699be
CRYO: Fix crash when restarting the game
2017-02-27 00:59:17 +01:00
Willem Jan Palenstijn
a8cbc03acc
CRYO: Improve macro safety
2017-02-26 22:45:03 +01:00
Eugene Sandulenko
2168ac1ef0
CRYO: Fix warning
2017-02-26 22:34:25 +01:00
Strangerke
e12a25cb75
CRYO: Improve syncTapePointers
2017-02-26 20:54:35 +01:00
Strangerke
32965e44e3
CRYO: Some renaming
2017-02-24 23:55:11 +01:00
Strangerke
e878332cc4
CRYO: Fix a bug in syncTapePointers
2017-02-21 00:44:38 +01:00
Strangerke
9f6ffed6ff
CRYO: Rename sync functions
2017-02-19 21:34:19 +01:00
Strangerke
6c4635ac7d
CRYO: Rewrite save/load game functions
2017-02-19 21:34:16 +01:00
Strangerke
70f1cd6efe
CRYO: Remove some more dead code, remove _keyboardHeld
2017-02-12 18:10:25 +01:00
Strangerke
2adc84e728
CRYO: Some code simplification, remove dead code
2017-02-12 17:44:07 +01:00
Filippos Karapetis
a7d681764f
CRYO: Merge spriteOnSubtitle() into drawSprite()
2017-02-12 00:54:39 +02:00
Filippos Karapetis
d3d5ff2a88
CRYO: Split graphics and resource-related functions into separate files
2017-02-12 00:54:39 +02:00
Filippos Karapetis
c40b74bb28
CRYO: Merge the two noclipax() methods and rename to drawSprite()
2017-02-12 00:54:38 +02:00
Filippos Karapetis
8eb38c0933
CRYO: Rename variables to conform to our code formatting guidelines
2017-02-11 21:53:10 +02:00
Filippos Karapetis
e95ed8eb90
CRYO: Clean up and document some variables
2017-02-11 21:51:36 +02:00
Filippos Karapetis
5d119b6038
CRYO: Add cryo.dat to all messages related to it
2017-02-11 20:48:52 +02:00
Filippos Karapetis
01e7b4edcf
CRYO: Fix typos in some sizeof() values
2017-02-11 20:42:07 +02:00
Filippos Karapetis
deb0857f68
CRYO: Change the version of cryo.dat to be a 32-bit integer (2/2)
...
Though it's unlikely that we'll ever have that many changes, it's
better to provision for more space now, for versioning
2017-02-11 18:05:07 +02:00
Filippos Karapetis
24a4c231da
CRYO: Rename variables to conform to our formatting guidelines
2017-02-11 17:20:54 +02:00
Filippos Karapetis
05c99c5b0d
CRYO: Move more static data to cryo.dat (2/2)
2017-02-11 17:16:45 +02:00
Filippos Karapetis
fed7341481
CRYO: Use hardcoded values for structs instead of sizeof()
2017-02-11 17:10:26 +02:00
Filippos Karapetis
77f1194586
CRYO: Move all static data for Lost Eden to cryo.dat (2/2)
2017-02-10 11:51:58 +02:00
Filippos Karapetis
130dfccfc1
CRYO: Use cryo.dat for all game versions
...
All the static data will be eventually moved into this file
2017-02-10 10:12:05 +02:00
Filippos Karapetis
248e5d3c59
CRYO: Add handling for the cryo.dat aux data file
2017-02-10 10:12:05 +02:00
Filippos Karapetis
79e774b806
Revert "CRYO: Add handling for the cryo.dat aux data file"
...
This reverts commit 01e072fbbc .
2017-02-10 10:08:04 +02:00
Filippos Karapetis
3e4710bb20
Revert "CRYO: Use cryo.dat for all game versions"
...
This reverts commit 6ff7ef95d7 .
2017-02-10 10:07:51 +02:00
Filippos Karapetis
6ff7ef95d7
CRYO: Use cryo.dat for all game versions
...
All the static data will be eventually moved into this file
2017-02-10 04:33:36 +02:00
Filippos Karapetis
01e072fbbc
CRYO: Add handling for the cryo.dat aux data file
2017-02-10 04:33:36 +02:00
Strangerke
c2e0e001a7
CRYO: Fix some more GCC warnings
2017-02-08 16:30:52 +01:00
Strangerke
c55e8f9544
CRYO: Fix some shadowed member
2017-02-08 16:11:20 +01:00
Strangerke
18c1f2f6e4
CRYO: Fix several issues reported by coverity
2017-02-08 15:33:51 +01:00
Strangerke
de11872686
CRYO: Fix a null pointer
2017-02-06 00:04:49 +01:00
Strangerke
1ac6270531
CRYO: Remove some commented code
2017-02-02 23:31:50 +01:00
Strangerke
dec6b171a6
CRYO: Remove some obsolete TODOs
2017-02-02 23:28:19 +01:00
Strangerke
bf989df043
CRYO: Remove some dead code, small refactoring
2017-02-02 00:40:52 +01:00
Strangerke
6c139b7afb
CRYO: Remove double screen code (unused)
2017-02-02 00:31:48 +01:00
Strangerke
fad3f324a8
CRYO: Remove a couple of unused class members
2017-01-29 23:29:01 +01:00
Eugene Sandulenko
47c44b4488
CRYO: Fix compilation
2017-01-25 22:42:27 +01:00
Strangerke
c4bec08886
CRYO: Remove last use of EDEN_DEBUG
2017-01-25 22:42:27 +01:00
Strangerke
46ead90784
CRYO: Move inventory debug hack to debugger
2017-01-25 22:42:27 +01:00
Strangerke
a8a142cfe4
CRYO: Introduce debugger, remove console initialisation
2017-01-25 22:42:27 +01:00
Retro-Junk
0e34cec17a
CRYO: Fix out of bounds access in cursor save/restore
2017-01-25 22:42:26 +01:00
Strangerke
59212d9270
CRYO: Fix some warnings
2017-01-25 22:42:26 +01:00
Retro-Junk
aeeaf9b9e6
CRYO: Fix crash during PC intro video
2017-01-25 22:42:26 +01:00