Features
ZScript
- add
ReadBitflagsandAdjustBitflagshelper functions908e9c6e0 - add
Flag[]toScreenandmapdata74e5a2e9cThe 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
GetMapscreenFlagand similar helper functions, as usage was low/non-existent andFlagtotally replaces it.
Bug Fixes
- use correct zscript runtime version after saving older quests
c7fe1d99chttps://discord.com/channels/876899628556091432/1368485306394738718
Player
- don't skip saving game in test mode
f54e8a9bdMethods 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
e13e29f8eOnly 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
29b4ea0c4Regressed 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
enemyflagswithflags114201573d4