Commit graph

36 commits

Author SHA1 Message Date
smallmodel
7b58fbec8a
Fix comparison operator for char 2024-11-17 21:25:54 +01:00
smallmodel
2c4b5fc9ba
Rename the type variable to currentType so it doesn't take precedence over the type member
This fixes an issue where it was the type variable that was being set, rather than the type member
2024-11-16 20:07:26 +01:00
smallmodel
8eded28efc
Fix the typename in the error message for incompatible types 2024-11-16 19:22:01 +01:00
smallmodel
db01f72adc
Reimplemented ScriptVariable::entityValue
Some script events don't check if it's an actual entity, it would cause crashes.
E3L3 would crash after the player got out of the AB41: the AB41 was targetting a VehiclePoint and vehicles_thinkers.scr script set the `self.collisionent` to `self.target` which caused a crash as `VehiclePoint` doesn't inherit from `Entity`
2024-05-01 20:41:57 +02:00
smallmodel
b4bce3431b
Archive LightClass object pointer instead of a Class object pointer 2024-03-04 22:51:29 +01:00
smallmodel
960469be77
Implemented MakePrimitive() 2024-02-28 22:52:25 +01:00
smallmodel
75f8f86f86
Fixed compilation error on some compilers 2023-11-29 00:08:35 +01:00
smallmodel
b10ce9a426
Added GetKey() / SetKey() in con_set's Entry, so ScriptVariable can override it and set the key appropriately 2023-11-28 19:50:19 +01:00
smallmodel
d757fa6306
Renamed world.cpp and world.h to worldspawn.cpp and worldspawn.h 2023-10-08 00:08:47 +02:00
smallmodel
673a42242d
Formatted source files 2023-10-01 22:47:25 +02:00
smallmodel
f2ec502dc2
Fixed str allocation 2023-09-04 22:06:13 +02:00
smallmodel
0c2326480b
Avoid reallocation if the assigned ScriptVariable is the same as the other ScriptVariable 2023-08-19 20:47:14 +02:00
smallmodel
b1753df1ed
Reworked con_set and con_arrayset so that they have their own Entry class 2023-08-19 02:56:51 +02:00
smallmodel
9ba5710412
Fixed variable comparison operators with VARIABLE_CHAR 2023-08-19 00:57:02 +02:00
smallmodel
80ab513d76
Fixed size() returning 0 when the type is VARIABLE_NONE (must return -1) 2023-08-18 14:14:32 +02:00
smallmodel
3cc0c41b7b
Added ScriptArrayHolder constructor 2023-08-18 01:42:10 +02:00
smallmodel
23e01fc1a7
Make sure to set m_data.containerValue when copying the value 2023-08-17 17:39:26 +02:00
smallmodel
a3c65ef7e4
Fixed containerValue allocation (mustn't allocate a new one) 2023-08-17 03:18:19 +02:00
smallmodel
8487099264
Fixed crash due to improper ScriptPointer usage 2023-08-17 03:03:40 +02:00
smallmodel
9933612607
Added ScriptVariableList::VariableExists 2023-08-02 21:49:03 +02:00
smallmodel
68d48d9889
Used clang-format on some common files 2023-07-05 21:24:02 +02:00
smallmodel
5333c7ff4a
Removed empty line before opening braces 2023-07-05 20:52:55 +02:00
OM
3cc1e89b45 Tiny fixes related to bad printf formatting and sizes 2023-06-21 21:01:37 +02:00
OM
04c7565281 Fixed a few warnings 2023-06-17 02:27:12 +02:00
OM
c287638f99 Reworked file inclusion (using relative path) 2023-06-17 01:24:20 +02:00
OM
e4fa0fff3a Renamed **game** to **fgame** 2023-06-15 23:44:02 +02:00
OM
e45289d28b Renamed **NO_SCRIPTENGINE** to **WITH_SCRIPT_ENGINE** 2023-05-29 01:33:07 +02:00
L
ce53e2c57d Removed CGAME_DLL checks 2023-04-30 14:54:23 +02:00
L
c3e027c54f Fixed GAME_DLL issue with entity 2023-04-30 01:42:36 +02:00
L
5b5fb1c4d6 Removed CGAME_DLL check 2023-04-30 00:03:11 +02:00
L
f91d5f9fe9 Added support for ScriptVariable move 2023-02-07 20:50:26 +01:00
L
6eb1ec3cf5 Fixed compilation issues with g++ 2023-02-06 19:24:01 +01:00
L
1b1de99e53 Added IsConstArray() 2023-02-02 23:48:04 +01:00
L
d4faf0c0e0 Fixed compilation errors on Unix 2023-02-01 00:28:40 +01:00
L
b8c56cc23c Use override keyword when overriding virtual methods 2023-01-31 19:59:39 +01:00
L
8ef16a91f2 Reworked source tree so it compiles 2023-01-29 20:59:31 +01:00
Renamed from code/globalcpp/scriptvariable.cpp (Browse further)