Indentation

git-svn-id: https://svn.eduke32.com/eduke32@6858 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-04-23 10:15:17 +00:00
parent b4a8656910
commit b1c44af6f8

View file

@ -7670,33 +7670,31 @@ end_batch_insert_points:
} }
} }
static int32_t backspace_last = 0;
if (keystatus[0x0e]) //Backspace
{ {
static int32_t backspace_last = 0; keystatus[0x0e] = 0;
if (keystatus[0x0e]) //Backspace if (newnumwalls >= numwalls)
{ {
keystatus[0x0e] = 0; backspace_last = 1;
if (newnumwalls >= numwalls) if (newnumwalls == numwalls+1 || keystatus[0x1d]) // LCtrl: delete all newly drawn walls
{ newnumwalls = -1;
backspace_last = 1; else
newnumwalls--;
if (newnumwalls == numwalls+1 || keystatus[0x1d]) // LCtrl: delete all newly drawn walls }
newnumwalls = -1; else if (backspace_last==0)
else {
newnumwalls--; graphicsmode += (1-2*(DOWN_BK(RUN) || keystatus[0x36]))+3;
} graphicsmode %= 3;
else if (backspace_last==0) printmessage16("2D mode textures %s",
{ (graphicsmode == 2)?"enabled w/ animation":graphicsmode?"enabled":"disabled");
graphicsmode += (1-2*(DOWN_BK(RUN) || keystatus[0x36]))+3;
graphicsmode %= 3;
printmessage16("2D mode textures %s",
(graphicsmode == 2)?"enabled w/ animation":graphicsmode?"enabled":"disabled");
}
} }
else
backspace_last = 0;
} }
else
backspace_last = 0;
if (keystatus[0xd3] && eitherCTRL && numwalls > 0) //sector delete if (keystatus[0xd3] && eitherCTRL && numwalls > 0) //sector delete
{ {