aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/cl_scrn.c
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-06 01:30:42 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-06 01:30:42 +0000
commitea34e6946550b6326f82d010623486e9836315a1 (patch)
tree7691ac2e860287e33210ada32a582d9cc74bed17 /code/client/cl_scrn.c
parentc89b62bb73aeaf794d0efdd2fd1fbd8b1141a803 (diff)
downloadioquake3-aero-ea34e6946550b6326f82d010623486e9836315a1.tar.gz
ioquake3-aero-ea34e6946550b6326f82d010623486e9836315a1.zip
* Fixed client binary dedicated server
* Revert 1286 as the checks are no longer redundant following above fix git-svn-id: svn://svn.icculus.org/quake3/trunk@1409 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client/cl_scrn.c')
-rw-r--r--code/client/cl_scrn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/code/client/cl_scrn.c b/code/client/cl_scrn.c
index e7adce6..31b3df4 100644
--- a/code/client/cl_scrn.c
+++ b/code/client/cl_scrn.c
@@ -492,7 +492,7 @@ void SCR_DrawScreenField( stereoFrame_t stereoFrame ) {
// if the menu is going to cover the entire screen, we
// don't need to render anything under it
- if ( !VM_Call( uivm, UI_IS_FULLSCREEN )) {
+ if ( uivm && !VM_Call( uivm, UI_IS_FULLSCREEN )) {
switch( cls.state ) {
default:
Com_Error( ERR_FATAL, "SCR_DrawScreenField: bad cls.state" );
@@ -536,7 +536,7 @@ void SCR_DrawScreenField( stereoFrame_t stereoFrame ) {
}
// the menu draws next
- if ( Key_GetCatcher( ) & KEYCATCH_UI ) {
+ if ( Key_GetCatcher( ) & KEYCATCH_UI && uivm ) {
VM_Call( uivm, UI_REFRESH, cls.realtime );
}
@@ -569,9 +569,9 @@ void SCR_UpdateScreen( void ) {
}
recursive = 1;
- /* If there is no VM, there are also no rendering commands issued. Stop the renderer in
- * that case. */
- if(uivm)
+ // If there is no VM, there are also no rendering commands issued. Stop the renderer in
+ // that case.
+ if( uivm || com_dedicated->integer )
{
// if running in stereo, we need to draw the frame twice
if ( cls.glconfig.stereoEnabled || Cvar_VariableIntegerValue("r_anaglyphMode")) {