mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 10:40:47 +00:00
Warn user if pressing Ctrl+Shift+ENTER (check all wall pointers) in TROR map.
git-svn-id: https://svn.eduke32.com/eduke32@2124 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2d308625ff
commit
24edef5c63
1 changed files with 29 additions and 23 deletions
|
@ -6319,33 +6319,39 @@ end_space_handling:
|
||||||
keystatus[0x1c] = 0;
|
keystatus[0x1c] = 0;
|
||||||
if (keystatus[0x2a] && keystatus[0x1d]) // LCtrl+LShift
|
if (keystatus[0x2a] && keystatus[0x1d]) // LCtrl+LShift
|
||||||
{
|
{
|
||||||
printmessage16("CHECKING ALL POINTERS!");
|
#ifdef YAX_ENABLE
|
||||||
for (i=0; i<numsectors; i++)
|
if (numyaxbunches == 0 ||
|
||||||
|
(fade_editor_screen(-1), ask_if_sure("Really check all wall pointers in TROR map?", 0)))
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
startwall = sector[i].wallptr;
|
printmessage16("CHECKING ALL POINTERS!");
|
||||||
for (j=startwall; j<numwalls; j++)
|
for (i=0; i<numsectors; i++)
|
||||||
if (startwall > wall[j].point2)
|
{
|
||||||
startwall = wall[j].point2;
|
startwall = sector[i].wallptr;
|
||||||
sector[i].wallptr = startwall;
|
for (j=startwall; j<numwalls; j++)
|
||||||
}
|
if (startwall > wall[j].point2)
|
||||||
for (i=numsectors-2; i>=0; i--)
|
startwall = wall[j].point2;
|
||||||
sector[i].wallnum = sector[i+1].wallptr-sector[i].wallptr;
|
sector[i].wallptr = startwall;
|
||||||
sector[numsectors-1].wallnum = numwalls-sector[numsectors-1].wallptr;
|
}
|
||||||
|
for (i=numsectors-2; i>=0; i--)
|
||||||
|
sector[i].wallnum = sector[i+1].wallptr-sector[i].wallptr;
|
||||||
|
sector[numsectors-1].wallnum = numwalls-sector[numsectors-1].wallptr;
|
||||||
|
|
||||||
for (i=0; i<numwalls; i++)
|
for (i=0; i<numwalls; i++)
|
||||||
{
|
{
|
||||||
wall[i].nextsector = -1;
|
wall[i].nextsector = -1;
|
||||||
wall[i].nextwall = -1;
|
wall[i].nextwall = -1;
|
||||||
|
}
|
||||||
|
for (i=0; i<numsectors; i++)
|
||||||
|
{
|
||||||
|
for (WALLS_OF_SECTOR(i, j))
|
||||||
|
checksectorpointer(j, i);
|
||||||
|
}
|
||||||
|
printmessage16("ALL POINTERS CHECKED!");
|
||||||
|
asksave = 1;
|
||||||
}
|
}
|
||||||
for (i=0; i<numsectors; i++)
|
|
||||||
{
|
|
||||||
for (WALLS_OF_SECTOR(i, j))
|
|
||||||
checksectorpointer(j, i);
|
|
||||||
}
|
|
||||||
printmessage16("ALL POINTERS CHECKED!");
|
|
||||||
asksave = 1;
|
|
||||||
}
|
}
|
||||||
else
|
else // NOT (LCtrl + LShift)
|
||||||
{
|
{
|
||||||
if (linehighlight >= 0)
|
if (linehighlight >= 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue