Commit graph

26 commits

Author SHA1 Message Date
Sam V
840d119cd2 Remove redundant material type constants 2023-03-06 13:30:25 +01:00
Sam V
9c4af83c7d Rename CWorld::Instance to CWorld::World to avoid conflicting with CBaseEntity::Instance function name 2023-02-02 13:17:24 +01: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
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
bc3add9715 Always send room_type changes to client, set room_type to 0 by default, reset room_type to 0 on map change, save room_type and restore it when loading same map
Resolves ValveSoftware/halflife#1144
Resolves ValveSoftware/halflife#2936
2022-08-04 12:14:34 +02:00
Sam V
fdc159c8b3 Refactor env_sound code to use correct data type for room type, don't use goto 2022-08-04 11:36:15 +02:00
Sam V
51a1fc2ef9 Fix off by one bug in SENTENCEG_Init
Resolves ValveSoftware/halflife#3277
2022-05-27 14:13:24 +02:00
Sam V
063b8a5227 Account for players being able to turn cl_lw off when playing empty sound
ValveSoftware/halflife#3231
2022-01-24 12:27:27 +01:00
Sam V
6537f69fa9 Zero-initialize arrays directly to silence "might not be terminated" warning
#91
2021-11-30 13:31:54 +01:00
Sam V
a8824ba973 Fix speaker entity not handling invalid preset values correctly
Resolves #3178
2021-11-30 13:27:24 +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
08755342d0 Format all files and add clang-format configuration file
Resolves #84
2021-11-28 16:54:48 +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
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
262027b24e Include cctype in Platform.h, always include enums.h in APIProxy.h, remove unnecessary string.h include
#59
2021-11-18 20:20:32 +01:00
Sam V
667e0aea57 Use WIN32 preprocessor macro instead of _WIN32
Resolves #62
2021-11-18 20:02:04 +01:00
Solokiller
77c312a91d Use override specifier where needed (clang-tidy modernize-use-override) 2021-03-05 23:07:22 +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
Sam
faca8108f2 Increase buffer sizes to ensure all potential inputs can fit without overflowing the buffer 2020-02-15 18:07:52 +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