- cleaned up switch code and fixed several problems:
* savegames stored an index in the switch table and performed no validation when loading a savegame. * setting of a random switch animation duration was broken. * separated the 2 values stored in the Time variable into 2 separate variables. * defining a switch with one texture already belonging to another switch could leave broken definitions in the switch table. - added function for serializing switch and door animation pointers. - bumped min. savegame versions due to changes to DButtonThinker and removed all current savegame compatibility code. SVN r3030 (trunk)
This commit is contained in:
parent
e257c4cb64
commit
0715b7dfc6
17 changed files with 194 additions and 344 deletions
|
|
@ -861,15 +861,7 @@ void P_MovePsprites (player_t *player)
|
|||
|
||||
FArchive &operator<< (FArchive &arc, pspdef_t &def)
|
||||
{
|
||||
arc << def.state << def.tics << def.sx << def.sy;
|
||||
if (SaveVersion >= 2295)
|
||||
{
|
||||
arc << def.sprite << def.frame;
|
||||
}
|
||||
else
|
||||
{
|
||||
def.sprite = def.state->sprite;
|
||||
def.frame = def.state->Frame;
|
||||
}
|
||||
arc << def.state << def.tics << def.sx << def.sy
|
||||
<< def.sprite << def.frame;
|
||||
return arc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue