Re-enable Mapster32's undo/redo functionality.

git-svn-id: https://svn.eduke32.com/eduke32@2486 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-03-15 18:12:17 +00:00
parent 65fe7ce3bd
commit 5e1b3bd44b
2 changed files with 1 additions and 3 deletions

View File

@ -121,7 +121,7 @@ extern void M32_ResetFakeRORTiles(void);
extern int32_t kopen4loadfrommod(const char *filename, char searchfirst);
// set to 1 to enable:
#define M32_UNDO 0
#define M32_UNDO 1
extern int32_t map_revision;
extern int32_t map_undoredo(int32_t dir);
extern void map_undoredo_free(void);

View File

@ -622,8 +622,6 @@ int32_t map_undoredo(int32_t dir)
insertsprite(sprite[i].sectnum,sprite[i].statnum);
}
// XXX: this fails currently! the decompressed sprites have
// .statnum==MAXSTATUS and .sectnum==MAXSECTORS. WTF?!
assert(Numsprites == mapstate->numsprites);
#ifdef POLYMER