Commit graph

64 commits

Author SHA1 Message Date
smallmodel
f7bfa47f2e
Made ScriptVariable classes part of LightClass 2023-09-13 23:51:33 +02:00
smallmodel
9f6ef14ea1
GetCompiledScript should remain unused 2023-09-13 21:32:58 +02:00
smallmodel
c5a46be23e
Optimized calls to Event() (avoid allocating a new Event when it can be reused) 2023-09-07 18:22:07 +02:00
smallmodel
47a3c0bf55
Optimized event name
Use a static char*, instead of an allocated str
2023-09-07 18:05:49 +02:00
smallmodel
f2ec502dc2
Fixed str allocation 2023-09-04 22:06:13 +02:00
smallmodel
a99a4a3a2b
Clear the top value of a return command, if the listener is NULL 2023-08-30 23:34:29 +02:00
smallmodel
a307450e17
Made sourceLine argument optional to avoid string allocation 2023-08-19 21:12:03 +02:00
smallmodel
1a03288144
SetFastData: Move the ScriptVariable instead of copying it 2023-08-19 20:47:36 +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
24f3b3bc93
Added anyValue union field 2023-08-19 20:46:42 +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
843b49d56b
Allow operator new and operator delete to be called when debugging memory 2023-08-19 02:19:01 +02:00
smallmodel
b9f3ee867b
Fixed switch label with "default" case 2023-08-19 00:57:29 +02:00
smallmodel
f16b992a97
Fixed assignments with case-insensitive event names 2023-08-19 00:57:19 +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
2b38a0f48e
Fixed wrong opcode for method event 2023-08-17 21:29:55 +02:00
smallmodel
28de2543ec
Removed listenerVars as it can cause issues 2023-08-17 19:51:53 +02:00
smallmodel
1435489a43
Fixed floats with negative values 2023-08-17 19:17:16 +02:00
smallmodel
23e01fc1a7
Make sure to set m_data.containerValue when copying the value 2023-08-17 17:39:26 +02:00
smallmodel
911d1f1706
Fixed OP_STORE_FIELD and OP_STORE_FIELD_REF 2023-08-17 16:07:38 +02:00
smallmodel
56fba733f3
Always cast targetlist to const array value, so the iteration remains untouched 2023-08-17 03:18:41 +02:00
smallmodel
a3c65ef7e4
Fixed containerValue allocation (mustn't allocate a new one) 2023-08-17 03:18:19 +02:00
smallmodel
73bc196592
Fixed cmd execution while iterating over a target list 2023-08-17 03:04:01 +02:00
smallmodel
8487099264
Fixed crash due to improper ScriptPointer usage 2023-08-17 03:03:40 +02:00
smallmodel
efed6d0eac
Fixed script developer printf 2023-08-16 02:43:22 +02:00
smallmodel
16d262f6ee
Fixed floats being interpreted as integers sometimes 2023-08-14 03:09:38 +02:00
smallmodel
421126db38
Optimized ScriptVM::EventGoto 2023-08-13 22:07:33 +02:00
smallmodel
df66ab0339
Fixed EmitField bug
Clear the previous opcode when a new label is emitted
2023-08-13 21:55:22 +02:00
smallmodel
8b17d81545
Fixed variables improperly used on stack under some circumstances 2023-08-13 20:17:59 +02:00
smallmodel
f857116f75
Fixed script crashes 2023-08-13 17:59:49 +02:00
smallmodel
0dda70cca1
Fixed event parameters being wrong 2023-08-13 03:34:19 +02:00
smallmodel
5e83e03e33
Major grammar/lexer/compiler fixes 2023-08-13 03:34:09 +02:00
smallmodel
f5af33b181
Major script engine fixes 2023-08-12 19:59:40 +02:00
smallmodel
ec3259271e
Removed THREAD_CONTEXT_SWITCH 2023-08-12 03:03:34 +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
51116b933d Fixed code_pos being wrong after loadTop/storeTop 2023-07-04 23:16:35 +02:00
OM
4263b2843a Fixed code_pos not being incremented in EmitField 2023-07-04 23:15:45 +02:00
OM
fd871d6c8f avoid incrementing m_CodePos in OP_STORE_STRING and OP_STORE_VECTOR as fetchOpcodeValue() already does that 2023-07-04 23:06:33 +02:00
OM
3cc1e89b45 Tiny fixes related to bad printf formatting and sizes 2023-06-21 21:01:37 +02:00
OM
147851c506 Moved flex/bison generated files to subfolder "generated"
Added FLEX/BISON cmake generation
2023-06-17 16:54:12 +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