mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-13 11:30:44 +00:00
Mapster32: block ctrl-x and ctrl-shift-x from working if you have unsaved changes
git-svn-id: https://svn.eduke32.com/eduke32@5859 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
972c92dc6a
commit
e2fd26ca2e
1 changed files with 27 additions and 21 deletions
|
@ -7925,6 +7925,10 @@ end_insert_points:
|
||||||
{
|
{
|
||||||
|
|
||||||
if (eitherCTRL) //Ctrl
|
if (eitherCTRL) //Ctrl
|
||||||
|
{
|
||||||
|
if (asksave)
|
||||||
|
message("You have unsaved changes.");
|
||||||
|
else
|
||||||
{
|
{
|
||||||
int skip = 0;
|
int skip = 0;
|
||||||
nextmap:
|
nextmap:
|
||||||
|
@ -7955,6 +7959,7 @@ nextmap:
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// ^^^ PK ------------------------------------
|
// ^^^ PK ------------------------------------
|
||||||
|
|
||||||
if (keystatus[1] && joinsector[0] >= 0)
|
if (keystatus[1] && joinsector[0] >= 0)
|
||||||
|
@ -8516,6 +8521,7 @@ int32_t LoadBoard(const char *filename, uint32_t flags)
|
||||||
startpos = pos; //this is same
|
startpos = pos; //this is same
|
||||||
startang = ang;
|
startang = ang;
|
||||||
startsectnum = cursectnum;
|
startsectnum = cursectnum;
|
||||||
|
asksave = 0;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue