Send blackness to the back when created. The code works but the number 12 should perhaps be an enumeration or something else?
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2973 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
11c8d5957c
commit
2b6c05d71c
1 changed files with 12 additions and 0 deletions
|
@ -1866,6 +1866,18 @@ void UI_KeyPress(int key, int mx, int my)
|
|||
currentitem = numelements;
|
||||
numelements++;
|
||||
|
||||
if (typetoinsert == 12)
|
||||
{
|
||||
int j;
|
||||
|
||||
// Blackness should be sent to the back
|
||||
for (j = numelements; j > 0; j--)
|
||||
{
|
||||
element[j] = element[j-1];
|
||||
}
|
||||
|
||||
currentitem = 0;
|
||||
}
|
||||
element[currentitem].type = typetoinsert;
|
||||
element[currentitem].alpha = 1;
|
||||
element[currentitem].scalex = 1;
|
||||
|
|
Loading…
Reference in a new issue