Build 9053
GIT-
remove extraneous call to videoNextPage() when handling savegames initiated from CON
SVN handles and Git names are merged into one person.
remove extraneous call to videoNextPage() when handling savegames initiated from CON
use timerGetPerformanceCounter() instead of timerGetHiTicks() for CON performance profiling
this is intended to fix an issue where CON VM errors within a CON_FOR loop could cause an infinite loop
Fix off-by-one error in various CON text truncation warnings
Add missing diagnostic information for getactor/setactor
Internally, there are several different permutations of the opcodes that implement CON_GETACTOR and CON_SETACTOR. This maps the internal opcodes back to the external keywords that generated them and makes sure they all have the script line number attached to them for use in diagnostic warning and error messages.
Remove the EDUKE32_STANDALONE guards from around the definition of EVENT_CAPIR (but not the implementation)
EDUKE32_STANDALONE EVENT_CAPIR
Expose control over the list of statnums that hitradius will damage to CON
Add missing abs() call to z check before EVENT_JUMP
Change actor/player context of EVENT_SCREEN
Untie EVENT_ALTFIRE from the conditions required to trigger EVENT_FIRE
Add gamefunc_Alt_Weapon and EVENT_ALTWEAPON back in
Gamevar system maintenance
This removes some of the error handling for gamevar reads and writes and trades it for simpler code and a small-but-benchmarkable performance increase.
Make CLIPMASK0 and CLIPMASK1 regular defined tokens instead of read-only gamevars
I don't remember if there was any particular reason they were added as gamevars in the first place.
CON VM maintenance
Fix a potentially funny bug in the CON parser
I don't think anyone actually ran into this.
Use function overloading to clean up some of the CON event execution function names
Add EDUKE32_PREDICT_FALSE to EVENT_ANIMATESPRITES check in G_SaveMapState() and G_RestoreMapState()
Fix potential OOB memory access if the player's curr_weapon member is set out of range from CON
Fix "findnearactor" family of CON functions
Free inthash tables used by the CON compiler using the contents of inttables[] instead of listing them explicitly in C_Compile()
Use existing viewingrange and yxaspect for showview so it matches that of the main view
This fixes fov when using showview in EVENT_DISPLAYROOMS to do layered rendering, but it might not be right for uses of showview that simply display picture-in-picture stuff on screen.
Remove read only bit from SPRITE_SECTNUM and SPRITE_STATNUM in m32script
Add mousebits gamevar to m32script for querying mouse button states
Fix issue where a useless error would be printed to the log and bad memory reads could occur when compiling a CON script with an invalid structure member passed as gamevar structure access shortcut shorthand
CON access to raw q16 values for player horiz and ang etc
Fix CON commands leaving useless extra values in the bytecode. They were only valid outside of executable blocks so it was never noticed.
Fix CON compiler line number accounting problem introduced with the optimization that transforms CON_SETVARVAR -> CON_SETVAR if the second parameter is a constant
After some refactoring, several CON error checks done at runtime stood out as things that could be determined at script compile time. They have been moved.
Attempting to compile a CON with something stupid like "mul var 0" or "div var 0" in it now throws an error
Comment out actor and player versions of gamevar manipulation opcodes as they aren't performant with our current switch-based method of processing instructions. This also tweaks the beginning of VM_Execute() to gain a little more performance.