sdlayer.c: minor stylistic simplification of sdlayer_checkversion(). DONT_BUILD.

git-svn-id: https://svn.eduke32.com/eduke32@4964 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2015-02-07 17:29:14 +00:00
parent c6b9fa52d9
commit 1a7816065c

View file

@ -398,17 +398,16 @@ int32_t sdlayer_checkversion(void);
int32_t sdlayer_checkversion(void)
{
SDL_version compiled;
SDL_version linked_;
const SDL_version *linked = &linked_;
SDL_GetVersion(&linked_);
SDL_version linked;
SDL_GetVersion(&linked);
SDL_VERSION(&compiled);
initprintf("Initializing SDL system interface "
"(compiled against SDL version %d.%d.%d, found version %d.%d.%d)\n",
compiled.major, compiled.minor, compiled.patch, linked->major, linked->minor, linked->patch);
compiled.major, compiled.minor, compiled.patch, linked.major, linked.minor, linked.patch);
if (SDL_VERSIONNUM(linked->major,linked->minor,linked->patch) < SDL_REQUIREDVERSION)
if (SDL_VERSIONNUM(linked.major, linked.minor, linked.patch) < SDL_REQUIREDVERSION)
{
/*reject running under SDL versions older than what is stated in sdl_inc.h */
initprintf("You need at least v%d.%d.%d of SDL to run this game\n",SDL_MIN_X,SDL_MIN_Y,SDL_MIN_Z);