mirror of
https://github.com/OpenArena/gamecode
synced 2026-08-20 18:23:03 -04:00
Just to make the code cleaner.
This commit is contained in:
parent
2dea58d8d6
commit
63d8bd1dcb
2 changed files with 35 additions and 35 deletions
|
|
@ -1886,15 +1886,15 @@ void CG_ParseMenu(const char *menuFile) {
|
|||
break;
|
||||
}
|
||||
|
||||
/* if ( !Q_strequal( token, "{" ) ) {
|
||||
Com_Printf( "Missing { in menu file\n" );
|
||||
break;
|
||||
} */
|
||||
//if ( !Q_strequal( token, "{" ) ) {
|
||||
// Com_Printf( "Missing { in menu file\n" );
|
||||
// break;
|
||||
//}
|
||||
|
||||
/* if ( menuCount == MAX_MENUS ) {
|
||||
Com_Printf( "Too many menus!\n" );
|
||||
break;
|
||||
} */
|
||||
//if ( menuCount == MAX_MENUS ) {
|
||||
// Com_Printf( "Too many menus!\n" );
|
||||
// break;
|
||||
//}
|
||||
|
||||
if (token.string[0] == '}') {
|
||||
break;
|
||||
|
|
@ -2317,9 +2317,9 @@ void CG_LoadHudMenu(void) {
|
|||
}
|
||||
|
||||
void CG_AssetCache(void) {
|
||||
/* if (Assets.textFont == NULL) {
|
||||
trap_R_RegisterFont("fonts/arial.ttf", 72, &Assets.textFont);
|
||||
} */
|
||||
//if (Assets.textFont == NULL) {
|
||||
// trap_R_RegisterFont("fonts/arial.ttf", 72, &Assets.textFont);
|
||||
//}
|
||||
//Assets.background = trap_R_RegisterShaderNoMip( ASSET_BACKGROUND );
|
||||
//Com_Printf("Menu Size: %i bytes\n", sizeof(Menus));
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -201,8 +201,8 @@ Q_EXPORT intptr_t vmMain( int command, int arg0, int arg1, int arg2, int arg3, i
|
|||
void AssetCache( void )
|
||||
{
|
||||
int n;
|
||||
/* if (Assets.textFont == NULL) {
|
||||
} */
|
||||
//if (Assets.textFont == NULL) {
|
||||
//}
|
||||
//Assets.background = trap_R_RegisterShaderNoMip( ASSET_BACKGROUND );
|
||||
//Com_Printf("Menu Size: %i bytes\n", sizeof(Menus));
|
||||
uiInfo.uiDC.Assets.gradientBar = trap_R_RegisterShaderNoMip( ASSET_GRADIENTBAR );
|
||||
|
|
@ -698,9 +698,9 @@ void _UI_Refresh( int realtime )
|
|||
static int index;
|
||||
static int previousTimes[UI_FPS_FRAMES];
|
||||
|
||||
/* if ( !( trap_Key_GetCatcher() & KEYCATCH_UI ) ) {
|
||||
return;
|
||||
} */
|
||||
//if ( !( trap_Key_GetCatcher() & KEYCATCH_UI ) ) {
|
||||
// return;
|
||||
//}
|
||||
|
||||
uiInfo.uiDC.frameTime = realtime - uiInfo.uiDC.realTime;
|
||||
uiInfo.uiDC.realTime = realtime;
|
||||
|
|
@ -1260,15 +1260,15 @@ void UI_ParseMenu(const char *menuFile)
|
|||
break;
|
||||
}
|
||||
|
||||
/* if ( Q_stricmp( token, "{" ) ) {
|
||||
Com_Printf( "Missing { in menu file\n" );
|
||||
break;
|
||||
}*/
|
||||
//if ( Q_stricmp( token, "{" ) ) {
|
||||
// Com_Printf( "Missing { in menu file\n" );
|
||||
// break;
|
||||
//}
|
||||
|
||||
/* if ( menuCount == MAX_MENUS ) {
|
||||
Com_Printf( "Too many menus!\n" );
|
||||
break;
|
||||
} */
|
||||
//if ( menuCount == MAX_MENUS ) {
|
||||
// Com_Printf( "Too many menus!\n" );
|
||||
// break;
|
||||
//}
|
||||
|
||||
if ( token.string[0] == '}' ) {
|
||||
break;
|
||||
|
|
@ -5990,15 +5990,15 @@ static qboolean MapList_Parse(char **p)
|
|||
}
|
||||
}
|
||||
|
||||
/* mapList[mapCount].imageName = String_Alloc(va("levelshots/%s", mapList[mapCount].mapLoadName));
|
||||
if (uiInfo.mapCount == 0) {
|
||||
only load the first cinematic, selection loads the others
|
||||
uiInfo.mapList[uiInfo.mapCount].cinematic = trap_CIN_PlayCinematic(va("%s.roq",uiInfo.mapList[uiInfo.mapCount].mapLoadName), qfalse, qfalse, qtrue, 0, 0, 0, 0);
|
||||
} */
|
||||
//mapList[mapCount].imageName = String_Alloc(va("levelshots/%s", mapList[mapCount].mapLoadName));
|
||||
//if (uiInfo.mapCount == 0) {
|
||||
// only load the first cinematic, selection loads the others
|
||||
// uiInfo.mapList[uiInfo.mapCount].cinematic = trap_CIN_PlayCinematic(va("%s.roq",uiInfo.mapList[uiInfo.mapCount].mapLoadName), qfalse, qfalse, qtrue, 0, 0, 0, 0);
|
||||
//}
|
||||
uiInfo.mapList[uiInfo.mapCount].cinematic = -1;
|
||||
/* uiInfo.mapList[uiInfo.mapCount].levelShot = trap_R_RegisterShaderNoMip(va("levelshots/%s_small", uiInfo.mapList[uiInfo.mapCount].mapLoadName)); */
|
||||
/* leilei - We don't have _small levelshots, memory reasons */
|
||||
/* if (!uiInfo.mapList[uiInfo.mapCount].levelShot) */
|
||||
//uiInfo.mapList[uiInfo.mapCount].levelShot = trap_R_RegisterShaderNoMip(va("levelshots/%s_small", uiInfo.mapList[uiInfo.mapCount].mapLoadName));
|
||||
// leilei - We don't have _small levelshots, memory reasons
|
||||
//if (!uiInfo.mapList[uiInfo.mapCount].levelShot)
|
||||
uiInfo.mapList[uiInfo.mapCount].levelShot = trap_R_RegisterShaderNoMip(va("levelshots/%s", uiInfo.mapList[uiInfo.mapCount].mapLoadName));
|
||||
|
||||
if (uiInfo.mapCount < MAX_MAPS) {
|
||||
|
|
@ -6474,9 +6474,9 @@ void _UI_KeyEvent( int key, qboolean down )
|
|||
}
|
||||
}
|
||||
|
||||
/* if ((s > 0) && (s != menu_null_sound)) {
|
||||
trap_S_StartLocalSound( s, CHAN_LOCAL_SOUND );
|
||||
} */
|
||||
//if ((s > 0) && (s != menu_null_sound)) {
|
||||
// trap_S_StartLocalSound( s, CHAN_LOCAL_SOUND );
|
||||
//}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue