mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
- Make old-nextwalls invalid on the following two occasions: ovh_whiteoutgrab
with no highlighted sectors; and when entering 3D mode, even if there are highlighted sectors. This should have almost no effect, but I find it cleaner that way. - Check map for corruption every time an editing change is done. This was accidentally disabled when commenting out the undo code (which I've yet to debug). git-svn-id: https://svn.eduke32.com/eduke32@2121 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
a1864b6a2e
commit
9a8603d01e
2 changed files with 7 additions and 1 deletions
|
@ -1621,7 +1621,10 @@ void ovh_whiteoutgrab(int32_t restoreredwalls)
|
|||
wall[j].nextsector = -1;
|
||||
}
|
||||
|
||||
mkonwvalid();
|
||||
if (highlightsectorcnt > 0)
|
||||
mkonwvalid();
|
||||
else
|
||||
mkonwinvalid();
|
||||
}
|
||||
|
||||
static void duplicate_selected_sectors(void)
|
||||
|
@ -6896,6 +6899,7 @@ CANCEL:
|
|||
checksectorpointer(j, highlightsector[i]);
|
||||
}
|
||||
}
|
||||
mkonwinvalid();
|
||||
|
||||
fixspritesectors();
|
||||
|
||||
|
|
|
@ -11290,6 +11290,8 @@ void ExtCheckKeys(void)
|
|||
{
|
||||
#if M32_UNDO
|
||||
create_map_snapshot();
|
||||
#else
|
||||
CheckMapCorruption(6, 0);
|
||||
#endif
|
||||
asksave++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue