Subversion Repositories eduke32


Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
5039 2185d 19h hendricks266 /polymer/eduke32/source/gameexec.h CON: Add "resetplayerflags". Flag 1 means "don't ask the user if they want to load".  
4988 2206d 16h terminx /polymer/eduke32/source/gameexec.h C-CON changes  
4766 2283d 17h hendricks266 /polymer/eduke32/source/gameexec.h Make a bunch of things extern "C". This should fix C++ builds on OS X and with Lunatic. DONT_BUILD.  
4763 2284d 0h hendricks266 /polymer/eduke32/source/gameexec.h Eliminate the printf_nowarn stuff that has long since been supplanted by TrackerCast. DONT_BUILD.  
4747 2287d 9h terminx /polymer/eduke32/source/gameexec.h Part 1 of attempting to adhere to C standard section 7.1.3. It turns out it's illegal to use identifiers that begin with _ or have __ anywhere in them. DONT_BUILD.  
4745 2287d 9h terminx /polymer/eduke32/source/gameexec.h Mainly misc cleanups (and a fix for the C++ build), but there are a few important changes in here.

VM_OnEvent() has become VM_OnEvent(), VM_OnEventWithReturn(), VM_OnEventWithDist(), and VM_OnEventWithBoth() (the latter of which is only ever used once...). Of course, this required every call to VM_OnEvent() be changed.

memberlabel_t and vmstate_t have been changed to use the regular "int" type versus explicitly specifying int32_t as they did previously. The rationale for this change is simply that it looks cleaner, and I think we should move toward just using "int" in most cases where there's no particular reason to specify an explicit data type.

Also changes CON_KILLIT to just "return" instead of "continue". DONT_BUILD.
4710 2310d 0h helixhorned /polymer/eduke32/source/gameexec.h Lunatic: fix building and startup up to tilesizx[] failure. DONT_BUILD.

- Needed to rip out enum GameEvent_t into own header file to prevent what
would be a circular #include otherwise
- Added some forgotten #ifdef LUNATIC
- updated structure and function declarations on the Lua FFI side
4680 2315d 18h terminx /polymer/eduke32/source/gameexec.h Another 5000 lines of pain and tears. DONT_BUILD.  
4673 2315d 18h terminx /polymer/eduke32/source/gameexec.h Rename VM_OnEvent to VM_OnEvent_ and add move the checks for whether the event is actually defined or not to a wrapper declared static inline  
4541 2412d 13h hendricks266 /polymer/eduke32/source/gameexec.h Replace the funkily-formatted GNU.TXT with the FSF's official gpl-2.0.txt. Also, update the FSF's address in all source files that contain it.

4515 2445d 22h hendricks266 /polymer/eduke32/source/gameexec.h By request, implement EVENT_ACTIVATECHEAT.  
4226 2616d 5h helixhorned /polymer/eduke32/source/gameexec.h Guard retrieval of player index (.yvel) from APLAYER sprite.

It is unacceptable that yvel is on one hand modifiable without restriction from
scripting, but can be used as an array index without prior bound check in the C
code. Because that member has an overloaded meaning and is also used for
innocuous purposes such as the green color intensity of an SE light, it's
infeasible to restrict access from scripting. Consequently, we must add bound
checks on the C side. This is the first part of the effort to make .yvel safe,
adding two functions P_Get() and P_GetP(). There are a couple of other uses as
some kind of index.
4206 2624d 3h helixhorned /polymer/eduke32/source/gameexec.h Scripting: Add EVENT_DAMAGEHPLANE and document it in Lunatic doc Appendix B.

Also add test/damagehplane.lua with these demonstrations:
- custom breakable ceilings
- breakable TROR glass
3937 2790d 1h helixhorned /polymer/eduke32/source/gameexec.h Lunatic: retire per-sprite tsprite access for per-tile animation callback reg.

Don't yet make this official API though, since there are unresolved issues
with newly created tsprites potentially being fed back to the animation loop.
Add xmath.angvec(), xmath.bangvec(), tspr:set_sectnum(), tspr:setpos().
3792 2839d 2h helixhorned /polymer/eduke32/source/gameexec.h Make G_{Save,Restore}MapState() take no input arguments.

Instead, MapInfo[ud.volume_number*MAXLEVELS+ud.level_number] is accessed
inside these functions.
3791 2839d 2h helixhorned /polymer/eduke32/source/gameexec.h Remove redundant checks for some map state function uses.

Also, prettify G_FreeMapState(), remove some duplicate function decls and
resurrect 'savestate' and 'restorestate' OSD commands for the debug build.
3514 2926d 3h helixhorned /polymer/eduke32/source/gameexec.h gameexec.c: factor out 2x used code into VM_KillIt.

Also, for Lunatic, handle killit from events.
3460 2940d 1h helixhorned /polymer/eduke32/source/gameexec.h gameexec: for VM_Fall and VM_ResetPlayer, pass VM sprite/player etc. as args.

Simplifying VM_FallSprite and VM_ResetPlayer2 used from Lunatic.
3354 2977d 6h helixhorned /polymer/eduke32/source/gameexec.h Lunatic: compile out more code with LUNATIC_ONLY.  
3258 3000d 8h helixhorned /polymer/eduke32/source/gameexec.h Make EventNames[] an array of (const char *) instead of const tokenlist.  

Show All