Commit graph

30 commits

Author SHA1 Message Date
Joël Troch
7b001c59ae [HL25] Add field name null check when restoring 2024-08-28 09:58:59 +02:00
Joël Troch
91ea9ed318 [HL25] Backport safer strings operations
One exception where Updated's existing work has been kept is in
CHudTextMessage::LocaliseTextString.

See those commits for details:
- d2da2f17fd
- a3aeea468f
2024-08-28 09:58:59 +02:00
Sam V
d5d96d3883 Fix save game system not saving arrays of EHANDLEs if the first half of the array contains null handles
Resolves SamVanheer/halflife-updated#224
2023-10-04 13:02:13 +02:00
Sam V
a370af08e6 Convert all source files to UTF without BOM 2022-12-17 13:32:43 +01:00
Anchur
2c84881c07 Update source file encoding to UTF-8 2022-12-16 22:52:07 +08:00
Sam V
89610a2d53 Correctly save and restore controller and blending variables
Resolves #175
2022-10-25 16:39:07 +02:00
Sam V
f2c8e2346e Access world through global, access local player through helper function, remove some obsolete utility functions
ValveSoftware/halflife#3307
2022-10-07 16:40:56 +02:00
Sam V
4a00801003 Remove uses of obsolete register keyword (error when using clang++) 2022-08-15 21:53:01 +02:00
Sam V
5b63030b4c Remove unused function UTIL_GetNextBestWeapon 2022-01-19 17:03:57 +01:00
Sam V
e2eadc6438 Add support for saving and restoring 64 bit integers
Resolves #99
2021-12-02 13:43:00 +01:00
Sam V
2b9b75ac97 Wrap braces after case label
#84
2021-11-29 20:55:01 +01:00
Sam V
12d410785b Properly format method definitions to have no space between class name and scope operator
#84
2021-11-29 20:31:17 +01:00
Sam V
660643853c Rework CSave & CRestore to eliminate null data pointers, clean up code a bit
Resolves #94
#91
2021-11-29 19:48:37 +01:00
Sam V
9ca8e6a47a Remove unused globals and duplicate global variable forward declarations
#89
2021-11-28 20:40:56 +01:00
Sam V
08755342d0 Format all files and add clang-format configuration file
Resolves #84
2021-11-28 16:54:48 +01:00
Sam V
bae39547c8 Fix FIELD_BOOLEAN using int size instead of byte size for saving and restoring
Resolves #65
2021-11-28 16:06:37 +01:00
Sam V
998469a386 Rework all boolean condition checks to use conversions to bool, use bool instead of int when possible
#69
#83
#59
2021-11-28 15:32:26 +01:00
Sam V
c5b1932a86 Remove all remaining references to BOOL
Rework all uses of BOOL member variables to use bool instead
Change save game system to use bool for FIELD_BOOLEAN
Remove BOOL typedefs
#59
2021-11-19 20:40:36 +01:00
Sam V
c147156298 Save FIELD_BOOLEAN as byte array
Resolves #65
2021-11-19 20:36:37 +01:00
Sam V
0b334a3216 Rework all uses of BOOL in function declarations with bool or qboolean
#59
2021-11-19 14:31:11 +01:00
Sam V
bce3b78653 Replace all uses of TRUE with true
#59
2021-11-19 13:45:16 +01:00
Sam V
99e0a0ed2c Replace uses of FALSE with false
#59
2021-11-19 13:43:33 +01:00
Sam V
44a3e2f397 Rework all uses of ULONG to use unsigned int instead
#59
2021-11-18 21:55:07 +01:00
Sam V
667e0aea57 Use WIN32 preprocessor macro instead of _WIN32
Resolves #62
2021-11-18 20:02:04 +01:00
Solokiller
9eca76dccf Move FindEntityForward to util.h/.cpp & rename to UTIL_FindEntityForward 2021-03-16 13:52:59 +01:00
Solokiller
8247ed76ea Remove void from functions taking no arguments (clang-tidy modernize-redundant-void-arg) 2021-03-05 20:54:33 +01:00
Solokiller
c39eca969c Move user message globals & link function to its own file, declare all user messages once 2021-02-17 17:10:14 +01:00
Sam
ccad6fe576 Make char* parameters const where needed to silence compiler warnings 2020-02-13 17:15:27 +01:00
Joël Troch
39524f609d Add fixes for Linux (GCC 8) 2018-09-03 00:01:23 +02:00
Alfred Reynolds
de70fada50 initial seed of Half-Life 1 SDK 2013-08-30 13:34:05 -07:00