- Removed the Actor uservar array and replaced it with user-defined variables.
A_SetUserVar/SetUserVariable/GetUserVariable now take a variable name instead of an array index. A_SetUserArray/SetUserArray/GetUserArray have been added to access elements in user-defined arrays. SVN r1933 (trunk)
This commit is contained in:
parent
f40462dfb4
commit
19b23f2cf3
15 changed files with 374 additions and 28 deletions
|
|
@ -314,7 +314,13 @@ void AActor::Serialize (FArchive &arc)
|
|||
arc << DamageFactor;
|
||||
}
|
||||
|
||||
for(int i=0; i<10; i++) arc << uservar[i];
|
||||
// Skip past uservar array in old savegames
|
||||
if (SaveVersion < 1933)
|
||||
{
|
||||
int foo;
|
||||
for (int i = 0; i < 10; ++i)
|
||||
arc << foo;
|
||||
}
|
||||
|
||||
if (arc.IsStoring ())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue