Rev |
Age |
Author |
Path |
Log message |
Diff |
5069 |
2210d 21h |
terminx |
/polymer/eduke32/source/gamevars.h |
Further gamevar changes/optimizations. This also fixes a bug Fox reported with the "shortcut" access to structure members that's tacked on to GetVar, where if the value of the index you're trying to access happened to equal the ID of the current sprite, it would act as if the variable passed was THISACTOR. |
|
4895 |
2282d 17h |
terminx |
/polymer/eduke32/source/gamevars.h |
Clean up/refactor a few gamevar related functions based on building as C++/C99 and some interesting articles I read about how GCC and Clang optimize switches. Worth a few FPS here. |
|
4839 |
2298d 4h |
helixhorned |
/polymer/eduke32/source/gamevars.h |
In C-CON build, prevent leak of gamevar/gamearray labels on savegame loading.
Also, rewrite the loops in Gv_Free() and Gv_Clear() in the plain fashion so
that they are correct even if the number of gamearrays exceeds the number of
gamevars. |
|
4762 |
2330d 13h |
hendricks266 |
/polymer/eduke32/source/gamevars.h |
Fix some things when building on OS X. DONT_BUILD. |
|
4755 |
2332d 3h |
helixhorned |
/polymer/eduke32/source/gamevars.h |
Fix C build and build on Linux/SDL2.
- for the first point: 'struct glattribs sdlayer_gl_attributes[]' was defined
at file scope, but 'glmultisample > 0' is not a compile-time constant.
- for the second point: r4749 changed the meaning of some conditional
compilation (supposedly, unintentionally). I'm reverting it to pre-r4749
but keeping the rewritten style. It's concerned with mouse thumb buttons. |
|
4747 |
2332d 9h |
terminx |
/polymer/eduke32/source/gamevars.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 |
2332d 9h |
terminx |
/polymer/eduke32/source/gamevars.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. |
|
4735 |
2347d 0h |
helixhorned |
/polymer/eduke32/source/gamevars.h |
C-CON: fix 'readgamearray' and 'resizearray' on Windows.
We must not use Xrealloc(), since gamearrays are now allocated with
Xaligned_alloc().
NOTE: I did not check all potential problematic cases, only those to get
LNGA3 up and running. |
|
4698 |
2356d 5h |
terminx |
/polymer/eduke32/source/gamevars.h |
Aligned gamevar/gamearray allocation |
|
4680 |
2360d 18h |
terminx |
/polymer/eduke32/source/gamevars.h |
Another 5000 lines of pain and tears. DONT_BUILD. |
|
4658 |
2360d 18h |
terminx |
/polymer/eduke32/source/gamevars.h |
Various additional optimizations: add CLASSIC_SLICE_BY_4 mode to unroll some of the loops in a-c, replace integer divisions by a divisor unknown at compile time with usage of libdivide, clean up pragmas further by removing more old stuff that wasn't used anywhere. This is another one of those nasty commits that make people cry. DONT_BUILD. |
|
4631 |
2385d 18h |
terminx |
/polymer/eduke32/source/gamevars.h |
Gamevar cleanup: drop "register" qualifiers, shuffle a few things around. |
|
4541 |
2457d 13h |
hendricks266 |
/polymer/eduke32/source/gamevars.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.
DONT_BUILD. |
|
4286 |
2627d 1h |
helixhorned |
/polymer/eduke32/source/gamevars.h |
Lunatic: Fix compilation of C++ build, but not starting up yet.
BUILD_LUNATIC. |
|
3848 |
2870d 8h |
helixhorned |
/polymer/eduke32/source/gamevars.h |
LunaCON: proper handling of dynamic remappings with weapon defaults.
That is, the gamevars named WEAPONx_* in CON will now have the remapped value
if they were not overridden from CON ('gamevar' at file scope).
For C-CON, everything except signaling an override from the CON parser is in
place. |
|
3830 |
2873d 4h |
helixhorned |
/polymer/eduke32/source/gamevars.h |
Lunatic: also reset per-actor gamevars from spawns originating from C.
Take care not to do it twice. Still untested though. |
|
3791 |
2884d 2h |
helixhorned |
/polymer/eduke32/source/gamevars.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. |
|
3789 |
2884d 2h |
helixhorned |
/polymer/eduke32/source/gamevars.h |
Lunatic: conditionally compile out more code in savegame/gamevars.[ch].
Also, make the savegame major version 2 in the Lunatic build. |
|
3556 |
2951d 11h |
helixhorned |
/polymer/eduke32/source/gamevars.h |
Lunatic translator: handle LOGO_FLAGS.
This is the only gamevar of its kind that is handled for Lunatic, neither
PLR_MORALE nor LOGO_FLAGS are. |
|
3459 |
2985d 1h |
helixhorned |
/polymer/eduke32/source/gamevars.h |
Move around some #ifdef LUNATIC to compile out more code, minor cleanup. |
|