Skip to content

Commit

Permalink
- Blood: fixed bad saving of velocity data.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Sep 11, 2021
1 parent bf32c5e commit 6d4f070
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions source/games/blood/src/loadsave.cpp
Expand Up @@ -482,18 +482,19 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, DBloodActor& w, DB

if (arc.BeginObject(keyname))
{
arc("hasx", w.hasx, def->hasx);
arc("hasx", w.hasx, def->hasx)
("basepoint", w.basePoint, def->basePoint)
("xvel", w.xvel, def->xvel)
("yvel", w.yvel, def->yvel)
("zvel", w.zvel, def->zvel);

// The rest is only relevant if the actor has an xsprite.
if (w.hasX())
{
arc ("xsprite", w.xsprite, def->xsprite)
arc("xsprite", w.xsprite, def->xsprite)
("dudeslope", w.dudeSlope, def->dudeSlope)
("dudeextra", w.dudeExtra, def->dudeExtra)
("spritehit", w.hit, def->hit)
("basepoint", w.basePoint, def->basePoint);
("xvel", w.xvel, def->xvel);
("yvel", w.yvel, def->yvel);
("zvel", w.zvel, def->zvel);
("spritehit", w.hit, def->hit);

if (gModernMap)
{
Expand Down

0 comments on commit 6d4f070

Please sign in to comment.