mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Mommy, am I going to hell for using goto? :(
git-svn-id: https://svn.eduke32.com/eduke32@58 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5aa9e74e61
commit
f47d670028
2 changed files with 12 additions and 4 deletions
|
@ -597,6 +597,8 @@ void menus(void)
|
||||||
rotatesprite(160<<16,19<<16,65536L,0,MENUBAR,16,0,10,0,0,xdim-1,ydim-1);
|
rotatesprite(160<<16,19<<16,65536L,0,MENUBAR,16,0,10,0,0,xdim-1,ydim-1);
|
||||||
menutext(160,24,0,0,"PLAYER SETUP");
|
menutext(160,24,0,0,"PLAYER SETUP");
|
||||||
|
|
||||||
|
rotatesprite((280)<<16,(35+(tilesizy[APLAYER]>>1))<<16,49152L,0,1426,0,ud.color,10,0,0,xdim-1,ydim-1);
|
||||||
|
|
||||||
if (current_menu == 20002) {
|
if (current_menu == 20002) {
|
||||||
x = probe(46,50,20,4);
|
x = probe(46,50,20,4);
|
||||||
switch(x) {
|
switch(x) {
|
||||||
|
@ -615,6 +617,13 @@ void menus(void)
|
||||||
KB_FlushKeyboardQueue();
|
KB_FlushKeyboardQueue();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 1:
|
||||||
|
ud.color++;
|
||||||
|
if(ud.color > 22)
|
||||||
|
ud.color = 0;
|
||||||
|
goto check_player_color;
|
||||||
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
AutoAim = (AutoAim == 2) ? 0 : AutoAim+1;
|
AutoAim = (AutoAim == 2) ? 0 : AutoAim+1;
|
||||||
goto player_menu_update;
|
goto player_menu_update;
|
||||||
|
@ -694,7 +703,7 @@ player_menu_update:
|
||||||
menutext(40,50+20,0,0,"COLOR");
|
menutext(40,50+20,0,0,"COLOR");
|
||||||
|
|
||||||
{
|
{
|
||||||
int ud_color,aaim,ud_weaponswitch;
|
int ud_color = -1, aaim = -1, ud_weaponswitch = -1;
|
||||||
|
|
||||||
ud_color = ud.color;
|
ud_color = ud.color;
|
||||||
aaim = AutoAim;
|
aaim = AutoAim;
|
||||||
|
@ -703,6 +712,7 @@ player_menu_update:
|
||||||
modval(0,2,(int *)&AutoAim,1,probey==2);
|
modval(0,2,(int *)&AutoAim,1,probey==2);
|
||||||
modval(0,3,(int *)&ud.weaponswitch,1,probey==3);
|
modval(0,3,(int *)&ud.weaponswitch,1,probey==3);
|
||||||
|
|
||||||
|
check_player_color:
|
||||||
{
|
{
|
||||||
int i, disallowed[] = { 1, 2, 3, 4, 5, 6, 7, 8, 17, 18, 19, 20, 22 };
|
int i, disallowed[] = { 1, 2, 3, 4, 5, 6, 7, 8, 17, 18, 19, 20, 22 };
|
||||||
|
|
||||||
|
@ -718,7 +728,6 @@ player_menu_update:
|
||||||
goto player_menu_update;
|
goto player_menu_update;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rotatesprite((280)<<16,(35+(tilesizy[APLAYER]>>1))<<16,49152L,0,1426,0,ud.color,10,0,0,xdim-1,ydim-1);
|
|
||||||
menutext(40,50+20+20,0,0,"AUTO AIM");
|
menutext(40,50+20+20,0,0,"AUTO AIM");
|
||||||
menutext(40,50+20+20+20,0,0,"WEAPON SWITCH");
|
menutext(40,50+20+20+20,0,0,"WEAPON SWITCH");
|
||||||
|
|
||||||
|
|
|
@ -1228,8 +1228,7 @@ void resetpspritevars(char g)
|
||||||
k=0;
|
k=0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
s->pal = ps[j].palookup = which_palookup;
|
s->pal = ps[j].palookup = which_palookup++;
|
||||||
which_palookup++;
|
|
||||||
if( which_palookup >= 17 )
|
if( which_palookup >= 17 )
|
||||||
which_palookup = 9;
|
which_palookup = 9;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue