22 Sep 2018

This commit is contained in:
g-cont 2018-09-22 00:00:00 +03:00 committed by Alibek Omarov
parent 64d52e493b
commit c051922c69
3 changed files with 6 additions and 1 deletions

View File

@ -1015,6 +1015,8 @@ void R_SaveVideoMode( int vid_mode )
glState.width = vidmode[mode].width;
glState.height = vidmode[mode].height;
glState.wideScreen = vidmode[mode].wideScreen;
Cvar_FullSet( "width", va( "%i", glState.width ), FCVAR_READ_ONLY );
Cvar_FullSet( "height", va( "%i", glState.height ), FCVAR_READ_ONLY );
Cvar_SetValue( "vid_mode", mode ); // merge if it out of bounds
MsgDev( D_NOTE, "Set: %s [%dx%d]\n", vidmode[mode].desc, vidmode[mode].width, vidmode[mode].height );

View File

@ -140,7 +140,7 @@ typedef struct physics_interface_s
// called at end the frame of SV_Physics call
void ( *SV_EndFrame )( void );
// obsolete
void (*pfnReserved)( void );
void (*pfnPrepWorldFrame)( void );
// called through save\restore process
void (*pfnCreateEntitiesInRestoreList)( SAVERESTOREDATA *pSaveData, int levelMask, qboolean create_world );
// allocate custom string (e.g. using user implementation of stringtable, not engine strings)

View File

@ -513,6 +513,9 @@ void SV_PrepWorldFrame( void )
ClearBits( ent->v.effects, EF_MUZZLEFLASH|EF_NOINTERP );
}
if( svgame.physFuncs.pfnPrepWorldFrame != NULL )
svgame.physFuncs.pfnPrepWorldFrame();
}
/*