mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
- properly write out the genPatrolStates in savegames.
This commit is contained in:
parent
f370c0f22f
commit
64b67291bc
1 changed files with 10 additions and 1 deletions
|
@ -403,10 +403,15 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, AISTATE*& w, AISTA
|
||||||
if (w == cstate)
|
if (w == cstate)
|
||||||
{
|
{
|
||||||
arc(keyname, i);
|
arc(keyname, i);
|
||||||
break;
|
return arc;
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
if (w >= genPatrolStates && w < genPatrolStates + kPatrolStateSize)
|
||||||
|
{
|
||||||
|
i = int(w - genPatrolStates) + 1000;
|
||||||
|
arc(keyname, i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -415,6 +420,10 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, AISTATE*& w, AISTA
|
||||||
{
|
{
|
||||||
w = allAIStates[i];
|
w = allAIStates[i];
|
||||||
}
|
}
|
||||||
|
else if (i >= 1000 && i < 1000 + kPatrolStateSize)
|
||||||
|
{
|
||||||
|
w = genPatrolStates + i;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
w = nullptr;
|
w = nullptr;
|
||||||
|
|
Loading…
Reference in a new issue