Disable the player setup menu when recording a demo, and disable the updates from the player menu when playing a demo back.

git-svn-id: https://svn.eduke32.com/eduke32@68 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-04-19 06:23:19 +00:00
parent 293c9593e0
commit e5419eb172
2 changed files with 6 additions and 2 deletions

View file

@ -8150,6 +8150,9 @@ void updatenames(void)
{ {
int l; int l;
if(ud.recstat != 0)
return;
for(l=0;(unsigned)l<sizeof(myname)-1;l++) for(l=0;(unsigned)l<sizeof(myname)-1;l++)
ud.user_name[myconnectindex][l] = Btoupper(myname[l]); ud.user_name[myconnectindex][l] = Btoupper(myname[l]);

View file

@ -2329,7 +2329,8 @@ cheat_for_port_credits:
} }
break; break;
case 3: case 3:
cmenu(20002); if(ud.recstat != 1)
cmenu(20002);
break; break;
case 4: case 4:
currentlist = 0; currentlist = 0;
@ -2343,7 +2344,7 @@ cheat_for_port_credits:
menutext(160,c, 0,0,"GAME SETUP"); menutext(160,c, 0,0,"GAME SETUP");
menutext(160,c+18, 0,0,"SOUND SETUP"); menutext(160,c+18, 0,0,"SOUND SETUP");
menutext(160,c+18+18, 0,0,"VIDEO SETUP"); menutext(160,c+18+18, 0,0,"VIDEO SETUP");
menutext(160,c+18+18+18, 0,0,"PLAYER SETUP"); menutext(160,c+18+18+18, 0,ud.recstat == 1,"PLAYER SETUP");
menutext(160,c+18+18+18+18, 0,0,"KEYBOARD SETUP"); menutext(160,c+18+18+18+18, 0,0,"KEYBOARD SETUP");
menutext(160,c+18+18+18+18+18, 0,0,"MOUSE SETUP"); menutext(160,c+18+18+18+18+18, 0,0,"MOUSE SETUP");
menutext(160,c+18+18+18+18+18+18,0,CONTROL_JoyPresent==0 || CONTROL_JoystickEnabled==0,"JOYSTICK SETUP"); menutext(160,c+18+18+18+18+18+18,0,CONTROL_JoyPresent==0 || CONTROL_JoystickEnabled==0,"JOYSTICK SETUP");