alexey.lysiuk
249e658f8b
- fixed missing deprecation warnings for ZScript global variables
...
https://forum.zdoom.org/viewtopic.php?t=64830
2019-05-29 17:37:31 +03:00
alexey.lysiuk
d336a83355
- fixed code generation for ternary operator with vector result types
...
https://forum.zdoom.org/viewtopic.php?t=64831
2019-05-29 13:24:03 +03:00
alexey.lysiuk
5c86a1e6b5
- fixed crash with push/insert to null dynarray when JIT is on
...
https://forum.zdoom.org/viewtopic.php?t=64148
2019-04-04 13:23:08 +03:00
Chronos Ouroboros
8dea4f9523
Fixed arrays of dynamic arrays causing a compilation error.
2019-03-13 12:42:45 +01:00
Chronos Ouroboros
7165b40657
Fixed nested dynamic array indexing causing a compilation error.
2019-03-13 10:23:06 +01:00
Christoph Oelckers
5e7fb16d05
- preparation work for substituting the menu and intermission screen text graphics for localization
2019-02-19 01:22:12 +01:00
Christoph Oelckers
aa550310f6
- allow the language table to supersede the title patches, if appropriate
...
For the Doom IWADs the provided font looks almost identical to the characters used on the title patches. So, for any level name that got replaced in some language, it will now check if the retrieved name comes from the default table, and if not, ignore the title patch and print the name with the specified font.
This also required removing the 'en' label from the default table, because with this present, the text would always be picked from 'en' instead of 'default'. Since 'en' and 'default' had the same contents, in any English locale the 'default' table was never hit, so this won't make any difference for the texts being chosen.
Last but not least, wminfo has been made a local variable in G_DoCompleted. There were two places where this was accessed from outside the summary screen or its setup code, and both were incorrect.
2019-02-15 00:29:24 +01:00
Christoph Oelckers
64685705d0
- made the console Unicode-capable.
...
This also necessitated some character remapping in the console font to move the Windows-1252 extra characters to their proper Unicode code points.
2019-02-16 13:05:19 +01:00
Rachael Alexanderson
20a9587bb7
Merge remote-tracking branch 'origin/master' into HEAD
2019-02-06 08:05:38 -05:00
alexey.lysiuk
78c0b7f230
- changed type of Nop expression to void
...
Control flow statements with constant condition no longer cause misleading fatal errors in ZScript
https://forum.zdoom.org/viewtopic.php?t=63566
2019-02-06 12:09:14 +02:00
Christoph Oelckers
979f1df281
Merge remote-tracking branch 'remotes/origin/master' into new_level_refactor
...
# Conflicts:
# src/g_level.cpp
# src/p_user.cpp
2019-02-05 13:49:07 +01:00
alexey.lysiuk
2765159fc6
- disabled VM JIT completely on unsuported platforms
2019-02-04 15:53:35 +02:00
Christoph Oelckers
6c006a5fbd
- added the missing Level parameters to AActor::StaticSpawn and P_ExecuteSpecial.
...
I think these were the last two still missing it, all remaining uses of the global level variable are in code that doesn't get run through a level tick and are supposed to access the primary level.
2019-02-01 22:02:16 +01:00
Christoph Oelckers
e3eaa5964d
- removed v_video.h include from portals.h
...
This has no business in a play related file which also made no use of it.
2019-02-01 00:30:21 +01:00
Christoph Oelckers
6451b7d592
- moved the combined compatibility flags into FLevelLocals.
2019-01-29 19:28:22 +01:00
Christoph Oelckers
84baa5bb4d
- deprecated the global 'level' variable.
...
This will currently output 9 warnings for the UDMF property getters. To silence these a bit more work is needed.
2019-01-27 14:33:02 +01:00
Christoph Oelckers
8323524014
- give thinkers a 'level' member and change linking to the chain to happen outside the constructor.
2019-01-27 01:49:20 +01:00
Christoph Oelckers
83d464d1be
- fixed code emission for constant ZScript function arguments
2019-01-23 22:37:16 +01:00
Christoph Oelckers
d60707c71e
- added the fix for BuiltinNew which I missed when cherry-picking.
2019-01-23 22:02:13 +01:00
Christoph Oelckers
12c10b5156
- fixed Identifier resolving for static functions
...
This entered the code path which warned about ambiguous use of variables in action functions and as a result ran afoul of subsequent error checks.
Since ZScript has no global scope resolution operator, this needs to ignore all non-static class symbols and try to look up any of these as global identifiers.
2019-01-23 21:50:10 +01:00
alexey.lysiuk
84db7f783d
- fixed wrong self type in Array.Resize()
...
https://forum.zdoom.org/viewtopic.php?t=63275
2019-01-23 21:33:41 +01:00
Christoph Oelckers
7c3ec662e1
- ensure proper emission of deprecations.
...
For global variables this wasn't implemented.
# Conflicts:
# src/namedef.h
# src/scripting/backend/codegen.cpp
# wadsrc/static/zscript/base.txt
2019-01-23 21:27:20 +01:00
alexey.lysiuk
21531c5ddb
- unary minus operator propagates boolean operand to integer
...
https://forum.zdoom.org/viewtopic.php?t=63214
2019-01-23 21:14:29 +01:00
Christoph Oelckers
4126f8ce72
- made OP_NEW a builtin function instead of an opcode.
...
The code was present 3 times due to the JIt, and this is not something that benefits from being a real opcode, even in the interpreted case.
2019-01-23 21:12:23 +01:00
Marrub
cc73449d29
Fix return value of native BuiltinCallLineSpecial
2019-01-23 21:09:34 +01:00
Chronos Ouroboros
4fdcc47edc
Added support for implicitly-sized initialized arrays.
...
Also fixed dynamic arrays not being cleared before initializing.
2019-01-23 20:43:46 +01:00
Chronos Ouroboros
7c91b27463
Fixed some issues in the ZScript array compilation code.
2019-01-23 20:43:06 +01:00
Chronos Ouroboros
a0ce8f2988
Implemented compound initializers for arrays.
2019-01-06 00:46:56 +01:00
Christoph Oelckers
8e24a50b36
- let FxNop have a value type, even if it's just TypeError.
2018-12-15 20:08:05 +01:00
Christoph Oelckers
abd6729d39
- fixed deprecation warnings for member functions not checking the version.
2018-12-11 00:35:22 +01:00
alexey.lysiuk
6362415054
- fixed return value of native call to dynamic array's Reserve()
...
https://forum.zdoom.org/viewtopic.php?t=62841
2018-12-10 11:26:46 +02:00
Christoph Oelckers
494a113920
- more direct native entry points.
...
- disallow bool as a return value for direct native calls because it only sets the lowest 8 bits of the return register.
- changed return type for several functions from bool to int where the return type was the only thing blocking use as direct native call.
2018-12-05 20:10:44 +01:00
Christoph Oelckers
062528e0e2
- more direct native function calls.
2018-12-04 18:16:01 +01:00
Christoph Oelckers
7df8245102
- added missing min/max unsigned instructions for the VM.
2018-12-03 21:12:39 +01:00
Christoph Oelckers
099b278f18
- removed assert that got triggered in an edge case that must pass here.
2018-12-02 23:35:18 +01:00
Christoph Oelckers
ea3d26aafd
- fixed character to int conversion for UTF8-characters.
2018-12-01 10:30:50 +01:00
Christoph Oelckers
a0c0e8bdfe
Merge remote-tracking branch 'remotes/origin/weapon_scriptification' into asmjit
...
# Conflicts:
# src/g_inventory/a_pickups.cpp
2018-11-30 21:28:44 +01:00
Magnus Norddahl
5d052fc565
- fix compile errors
2018-11-29 19:32:08 +01:00
Christoph Oelckers
19df662348
- fixed code generation for dummy results.
2018-11-29 20:15:53 +01:00
Christoph Oelckers
b8394b2f16
- fixed compilation warnings.
2018-11-29 20:11:28 +01:00
Christoph Oelckers
717912c88c
- direct native methods for dynamic arrays.
2018-11-29 20:09:41 +01:00
Christoph Oelckers
d3ff657231
- added a direct native function for NextHighestCeilingAt to test multiple return values.
2018-11-28 21:40:56 +01:00
Christoph Oelckers
fc7ca39927
- allocate storage for all of a function's return values
2018-11-28 00:24:50 +01:00
Christoph Oelckers
47b1fa774d
Merge branch 'asmjit' into weapon_scriptification
...
# Conflicts:
# src/gi.cpp
# wadsrc/static/zscript/base.txt
2018-11-26 00:14:44 +01:00
Christoph Oelckers
182d43ae70
- fixed: Any direct native function may not use struct values as parameters, not even something as simple as an FName.
2018-11-25 23:33:15 +01:00
Christoph Oelckers
a501a22b28
- define the built-in functions defined in codegen.cpp through the regular interface instead uf just hacking them into the symbol table with incompletely set up data.
...
- added direct native variants to these builtins and fixed problems with builtin processing.
2018-11-25 11:41:29 +01:00
Christoph Oelckers
192104aea2
- scriptified P_MorphPlayer and dependencies.
...
It still needs its counterpart scriptified as well before it can work.
2018-11-24 07:45:49 +01:00
Christoph Oelckers
02de10f657
- cleaned up the PointerSubstitution code
...
Since the only thing it gets used for is swapping out PlayerPawns it can safely skip all global variables that never point to a live player, which allowed to remove quite a bit of code here that stood in the way of scriptifying more content
2018-11-19 17:05:00 +01:00
Christoph Oelckers
8bc2d50ad2
Merge branch 'master' into asmjit
...
# Conflicts:
# src/p_actionfunctions.cpp
2018-11-18 21:08:16 +01:00
Christoph Oelckers
3aef8418d9
- fixed the type checks for object arrays.
...
Null pointers must be allowed and non-object pointers which are not null must be explicitly checked for because the code could crash on them when performing a static_cast on an incorrect type.
2018-11-18 19:48:09 +01:00