Subversion Repositories eduke32

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
5069 2130d 20h terminx /polymer/eduke32/source/savegame.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.  
4990 2171d 16h terminx /polymer/eduke32/source/savegame.h Android savegame hacks. DONT_BUILD.  
4766 2248d 16h hendricks266 /polymer/eduke32/source/savegame.h Make a bunch of things extern "C". This should fix C++ builds on OS X and with Lunatic. DONT_BUILD.  
4747 2252d 8h terminx /polymer/eduke32/source/savegame.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.  
4712 2273d 3h helixhorned /polymer/eduke32/source/savegame.h menus.c: prevent using a null pointer as arg to "%s" format for sprintf().

DONT_BUILD.
 
4589 2328d 3h helixhorned /polymer/eduke32/source/savegame.h For usermaps, save and restore currently playing music index with savegames.

The volume and level number for the music are stored in the last two bytes
of the board file name array. No version bump is required.
 
4541 2377d 12h hendricks266 /polymer/eduke32/source/savegame.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.
 
4472 2441d 8h hendricks266 /polymer/eduke32/source/savegame.h Replace some constants with preprocessor macros.  
4286 2547d 0h helixhorned /polymer/eduke32/source/savegame.h Lunatic: Fix compilation of C++ build, but not starting up yet.

BUILD_LUNATIC.
 
4119 2643d 0h helixhorned /polymer/eduke32/source/savegame.h LunaCON: very primitive gamevar handling logic for {save,load}mapstate.  
3975 2727d 0h helixhorned /polymer/eduke32/source/savegame.h Clean up parallaxed sky functionality, part 1.

- Consolidate psky* arrays into a "typedef struct psky_t" "g_psky" and
"multipsky[]".
- Factor out getting parallaxed sky properties into getpsky().
- Condense initial multi-psky setup by memcpy'ing from multipsky[].
- New function: MultiPsky_TileToIdx().
- Add new define PSKYOFF_MAX and related consistency-checking assertions.
- Lower MAXPSKYTILES to 8 to reflect current usage (was 256).
- Game: make multi-pskies consider dynamically-remapped MOONSKY1, BIGORBIT1
and LA. (Not very useful as the editor will still only act for the static
values -- 80, 84 and 89, respectively.)

An attempt has been made to preserve behavior even in strange cases, so this
commit is unlikely to introduce regressions. Because of point 6, BYTEVERSION
had to be bumped.
 
3789 2804d 2h helixhorned /polymer/eduke32/source/savegame.h Lunatic: conditionally compile out more code in savegame/gamevars.[ch].

Also, make the savegame major version 2 in the Lunatic build.
 
3156 2991d 10h helixhorned /polymer/eduke32/source/savegame.h Rewrite old-version-savegame signaling in a cleaner fashion.  
3150 2993d 3h helixhorned /polymer/eduke32/source/savegame.h Trivial G_Util_PtrToIdx*() tweaks.  
3102 3005d 5h terminx /polymer/eduke32/source/savegame.h Retire the actorscrptr[], actorLoadEventScrptr[], SpriteFlags[], ActorType[], SpriteCacheList[], ProjectileData[] and DefaultProjectile[] arrays in favor of a tile_t structure exposed as g_tile[]. This consolidates most of the MAXTILES sized arrays on the game side into one place.  
2999 3060d 4h helixhorned /polymer/eduke32/source/savegame.h Factor out some repeated code into G_{Load,Save}PlayerMaybeMulti.

This currently says that MP saving/loading isn't supported, but doesn't
really work correctly. Also, properly bound-check the immediate argument
to CON's 'save' command and one more ... -> G_HandleAsync().
 
2483 3234d 23h helixhorned /polymer/eduke32/source/savegame.h Save 'Numsprites' into savegames and mapstates. Bump savegame minor version.  
2471 3236d 1h helixhorned /polymer/eduke32/source/savegame.h Trivial stuff that got accumulated and not committed.  
2470 3236d 1h helixhorned /polymer/eduke32/source/savegame.h When deleting sprites, insert them at the tail (instead of head) of the freelist.

The major outside-visible change is that this fixes the sound cutoff bugs that
happened because newly-spawned sprites took the place of those whose sounds
had not yet finished playing.

Besides, there are these changes:
- remove deletesprite{sect,stat}
- we have a new engine variable 'tailspritefree' that keeps track of the
sprite freelist tail
- we need to store it in savegames and mapstates, so bump the savegame
minor version
 
2449 3238d 3h helixhorned /polymer/eduke32/source/savegame.h Save TROR-related information into map states and bump BYTEVERSION.  

Show All