- Fixed: ACS translations were loaded into the wrong slot after restoring a
savegame. - Fixed exploit: Dropping ammo at baby and nightmare skill levels would give you back more than you dropped. SVN r706 (trunk)
This commit is contained in:
parent
c15a3a8614
commit
d36d4aa863
4 changed files with 25 additions and 5 deletions
|
|
@ -2744,15 +2744,11 @@ void G_SerializeLevel (FArchive &arc, bool hubLoad)
|
|||
{
|
||||
while (arc << w, w != 0xffff)
|
||||
{
|
||||
if (w >= MAX_ACS_TRANSLATIONS)
|
||||
{ // hack hack to avoid crashing
|
||||
w = 0;
|
||||
}
|
||||
trans = translationtables[TRANSLATION_LevelScripted].GetVal(w);
|
||||
if (trans == NULL)
|
||||
{
|
||||
trans = new FRemapTable;
|
||||
translationtables[TRANSLATION_LevelScripted].SetVal(t, trans);
|
||||
translationtables[TRANSLATION_LevelScripted].SetVal(w, trans);
|
||||
}
|
||||
trans->Serialize(arc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue