Possibility to use dedicated version with SDL(it's used only by internal timer)

This commit is contained in:
Alibek Omarov 2018-05-01 17:26:21 +03:00
parent 063eb151c4
commit becd0eba03
2 changed files with 6 additions and 2 deletions

View File

@ -13,7 +13,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#ifdef XASH_SDL
#if defined( XASH_SDL ) && !defined( XASH_DEDICATED )
#include <SDL.h>
#include "common.h"
@ -637,4 +637,4 @@ int SDLash_JoyInit( int numjoy )
}
#endif // XASH_SDL
#endif // defined( XASH_SDL ) && !defined( XASH_DEDICATED )

View File

@ -12,6 +12,8 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#ifndef XASH_DEDICATED
#include "common.h"
#include "client.h"
#include "gl_local.h"
@ -1254,3 +1256,5 @@ void R_Free_OpenGL( void )
memset( glConfig.extension, 0, sizeof( glConfig.extension ));
glw_state.initialized = false;
}
#endif // XASH_DEDICATED