Features
ZScript
- add
ReadBitflags
andAdjustBitflags
helper functions908e9c6e0
- add
Flag[]
toScreen
andmapdata
74e5a2e9c
The new
Flag[]
variable is a boolean array of all the flags associated with a screen. This replacesFlags[]
andEFlags[]
, which are more complicated since they grouped bitflags by category and required bitwise operations to access individual flags.// Old bool v = Screen->Flags[SF_ROOMTYPE] & (1 << SFR_SIDEVIEW); // New bool v = Screen->Flag[SFL_SIDEVIEW];
Because of their complexity,
Flags[]
andEFlags[]
never supported writing to it.Flag[]
makes that possible now.Also removes
GetMapscreenFlag
and similar helper functions, as usage was low/non-existent andFlag
totally replaces it.
Bug Fixes
- use correct zscript runtime version after saving older quests
c7fe1d99c
https://discord.com/channels/876899628556091432/1368485306394738718
Player
- don't skip saving game in test mode
f54e8a9bd
Methods of saving the game other than directly via them menu (such as autosave on screen entry, or via scripting) were not saving any data when in test mode. Now, continuing or otherwise reloading the current test mode session will persist those saves.
- don't stop recording in test mode on quit
e13e29f8e
Only the "Continue" option correctly continued recording when ending the game in test mode, while the other options would end the recording and start a new one. Now, it continues as one recording.
"Game > Reset" still restarts the recording in test mode.
- lifted weapon not disappearing on death
d7869fc04
ZScript
- incorrect type being used when accessing some internal arrays
29b4ea0c4
Regressed in c6f3f00
https://discord.com/channels/876899628556091432/1295149938031722547
lweapon->isValid()
now accurate for lifted weapons62a494305
Documentation
- add example for passing objects w/ InitD
14d28d2db
Refactors
- replace mapscr
enemyflags
withflags11
4201573d4