Browse Source

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

pull/2/head
Alibek Omarov 7 years ago
parent
commit
becd0eba03
  1. 4
      engine/platform/sdl/events.c
  2. 4
      engine/platform/sdl/vid_sdl.c

4
engine/platform/sdl/events.c

@ -13,7 +13,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -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 ) @@ -637,4 +637,4 @@ int SDLash_JoyInit( int numjoy )
}
#endif // XASH_SDL
#endif // defined( XASH_SDL ) && !defined( XASH_DEDICATED )

4
engine/platform/sdl/vid_sdl.c

@ -12,6 +12,8 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -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 ) @@ -1254,3 +1256,5 @@ void R_Free_OpenGL( void )
memset( glConfig.extension, 0, sizeof( glConfig.extension ));
glw_state.initialized = false;
}
#endif // XASH_DEDICATED

Loading…
Cancel
Save