Revision r2210
fix displaying the screenshot even for old-version savegames.
Browse logs with clarity: filter by type/year, search text, and inspect parsed commit details.
fix displaying the screenshot even for old-version savegames.
net: send BYTEVERSION as two bytes, high byte first. Now we don't need to worry about the numbers running out soon. Bump BYTEVERSION by three to celebrate this, too.
Enable SAMESIZE_ACTOR_T described earlier.
Rewrite the savegame format in terms of the generic saving/loading system. This makes savegames practically the same as the initial snapshot of a demo. Saves are now named 'dukesavX.esv' (demos: 'edemoX.edm'). Additionally, many changes that couldn't/needn't be cleanly separated are added with this commit: - make spriteext_t have the same size across 32/64 bit platforms (actor_t partially) - prevent saving/loading in MP games (it certainly didn't work and still doesn't) - it's time we start using assertions! Define NDEBUG for releasse builds. - reset savegame major and minor versions (we have a new magic string, so no conflict)
Rewrite a couple of lines in clearfrags() to look more idiomatic.
Beauty tweaks; revert s_buildDate since we don't want windows builds to pull snapshots in the current development state now.
Fix non-TROR build and add a warning that such a build is only useful for debugging, i.e. savegames and the like will break.
Eh, fix out-of-bounds issue in clearfrags() with MAXPLAYERS players. It was identified with the clearfrags rewriting, but not corrected.
Factor out filename-based music setup code into G_SetupFilenameBasedMusic.
There were two instances of nearly identical code in premap.c and savegame.c.
Also identifies a (harmless) problem with realloc'ing, we had:
if (len+1 > sizeof(MapInfo[...].musicfn))
MapInfo[...].musicfn = Brealloc(MapInfo[...].musicfn, len+1)
which reallocs almost all the time (since .musicfn is a pointer). Now we do
realloc every time...
premap.c: write out inline function clearfrags() for clarity.
misc. cleanup in savegame.c
Rewrite EDuke32's -d<demofile> option parsing code. Writing into argv[i] isn't very wise. Also resize firstdemofile[] to BMAX_PATH bytes.
Remove written-out savegame.c function declarations from demo.c and include savegame.h instead.
Remove 'projectile' field from actor_t because it was entirely unused. WARNING: This silently breaks savegames on 64-bit platforms.
Remove a few unused variables from global.[ch], update build date string.
minor cosmetic tweaks in sector.[ch] and a off-by-one limit correction there ------------------------------------------------------------------------
------------------------------------------------------------------------
r2211 | helixhorned | 2011-12-25 07:35:06 -0800 (Sun, 25 Dec 2011) | 6 lines
start CON code at script[3] instead of script[1]. The 'move' command permits
the constants 0 and 1, and moveptrs may reference the script up to index 2
then (though I'm not sure whether the code is reachable with moveofs either
0 or 1), so make sure it's nulled instead of whatever happened to compile at
the first two positions. Move 1 is only used once in the original cons,
when frozen and being shattered.
------------------------------------------------------------------------
r2210 | helixhorned | 2011-12-25 07:34:52 -0800 (Sun, 25 Dec 2011) | 1 line
fix displaying the screenshot even for old-version savegames.
------------------------------------------------------------------------
r2209 | helixhorned | 2011-12-25 07:34:37 -0800 (Sun, 25 Dec 2011) | 4 lines
net: send BYTEVERSION as two bytes, high byte first.
Now we don't need to worry about the numbers running out soon.
Bump BYTEVERSION by three to celebrate this, too.
------------------------------------------------------------------------
r2208 | helixhorned | 2011-12-25 07:34:22 -0800 (Sun, 25 Dec 2011) | 1 line
Enable SAMESIZE_ACTOR_T described earlier.
------------------------------------------------------------------------
r2207 | helixhorned | 2011-12-25 07:34:06 -0800 (Sun, 25 Dec 2011) | 10 lines
Rewrite the savegame format in terms of the generic saving/loading system.
This makes savegames practically the same as the initial snapshot of a demo.
Saves are now named 'dukesavX.esv' (demos: 'edemoX.edm').
Additionally, many changes that couldn't/needn't be cleanly separated are added
with this commit:
- make spriteext_t have the same size across 32/64 bit platforms (actor_t partially)
- prevent saving/loading in MP games (it certainly didn't work and still doesn't)
- it's time we start using assertions! Define NDEBUG for releasse builds.
- reset savegame major and minor versions (we have a new magic string, so no conflict)
------------------------------------------------------------------------
r2206 | helixhorned | 2011-12-25 07:33:37 -0800 (Sun, 25 Dec 2011) | 1 line
Rewrite a couple of lines in clearfrags() to look more idiomatic.
------------------------------------------------------------------------
r2205 | helixhorned | 2011-12-25 07:33:24 -0800 (Sun, 25 Dec 2011) | 2 lines
Beauty tweaks; revert s_buildDate since we don't want windows builds to pull
snapshots in the current development state now.
------------------------------------------------------------------------
r2204 | helixhorned | 2011-12-25 07:33:02 -0800 (Sun, 25 Dec 2011) | 2 lines
Fix non-TROR build and add a warning that such a build is only useful for
debugging, i.e. savegames and the like will break.
------------------------------------------------------------------------
r2203 | helixhorned | 2011-12-25 07:32:44 -0800 (Sun, 25 Dec 2011) | 3 lines
Eh, fix out-of-bounds issue in clearfrags() with MAXPLAYERS players.
It was identified with the clearfrags rewriting, but not corrected.
------------------------------------------------------------------------
r2202 | helixhorned | 2011-12-25 07:32:30 -0800 (Sun, 25 Dec 2011) | 10 lines
Factor out filename-based music setup code into G_SetupFilenameBasedMusic.
There were two instances of nearly identical code in premap.c and savegame.c.
Also identifies a (harmless) problem with realloc'ing, we had:
if (len+1 > sizeof(MapInfo[...].musicfn))
MapInfo[...].musicfn = Brealloc(MapInfo[...].musicfn, len+1)
which reallocs almost all the time (since .musicfn is a pointer). Now we do
realloc every time...
------------------------------------------------------------------------
r2201 | helixhorned | 2011-12-25 07:32:14 -0800 (Sun, 25 Dec 2011) | 1 line
premap.c: write out inline function clearfrags() for clarity.
------------------------------------------------------------------------
r2200 | helixhorned | 2011-12-25 07:32:00 -0800 (Sun, 25 Dec 2011) | 1 line
misc. cleanup in savegame.c
------------------------------------------------------------------------
r2199 | helixhorned | 2011-12-25 07:31:46 -0800 (Sun, 25 Dec 2011) | 2 lines
Rewrite EDuke32's -d<demofile> option parsing code. Writing into argv[i]
isn't very wise. Also resize firstdemofile[] to BMAX_PATH bytes.
------------------------------------------------------------------------
r2198 | helixhorned | 2011-12-25 07:31:30 -0800 (Sun, 25 Dec 2011) | 2 lines
Remove written-out savegame.c function declarations from demo.c and include
savegame.h instead.
------------------------------------------------------------------------
r2197 | helixhorned | 2011-12-25 07:31:14 -0800 (Sun, 25 Dec 2011) | 3 lines
Remove 'projectile' field from actor_t because it was entirely unused.
WARNING: This silently breaks savegames on 64-bit platforms.
------------------------------------------------------------------------
r2196 | helixhorned | 2011-12-25 07:30:50 -0800 (Sun, 25 Dec 2011) | 1 line
Remove a few unused variables from global.[ch], update build date string.
------------------------------------------------------------------------
r2195 | helixhorned | 2011-12-21 10:43:39 -0800 (Wed, 21 Dec 2011) | 1 line
minor cosmetic tweaks in sector.[ch] and a off-by-one limit correction there
------------------------------------------------------------------------