mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Load/Save SimpleArchivedEntity
This fixes #213 where elevator wouldn't go up because of missing waypoint
This commit is contained in:
parent
783bf1b63c
commit
b77f62ab58
1 changed files with 21 additions and 0 deletions
|
@ -1357,8 +1357,29 @@ qboolean G_ArchiveLevel(const char *filename, qboolean autosave, qboolean loadin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// simple archived entities
|
||||||
|
//
|
||||||
|
if (!arc.Loading()) {
|
||||||
|
num = level.m_SimpleArchivedEntities.NumObjects();
|
||||||
|
}
|
||||||
|
arc.ArchiveInteger(&num);
|
||||||
|
|
||||||
|
if (arc.Saving()) {
|
||||||
|
for (i = 1; i <= num; i++) {
|
||||||
|
arc.ArchiveObject(level.m_SimpleArchivedEntities.ObjectAt(i));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
for (i = 1; i <= num; i++) {
|
||||||
|
arc.ReadObject();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ArchiveAliases(arc);
|
ArchiveAliases(arc);
|
||||||
|
|
||||||
|
// Added in 2.0
|
||||||
|
G_ArchiveSmokeSprites(arc);
|
||||||
|
|
||||||
currentArc = &arc;
|
currentArc = &arc;
|
||||||
gi.ArchiveLevel(arc.Loading());
|
gi.ArchiveLevel(arc.Loading());
|
||||||
currentArc = NULL;
|
currentArc = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue