From 1a7816065c04e8c6205d88f0cecaf84aba457e9e Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sat, 7 Feb 2015 17:29:14 +0000 Subject: [PATCH] sdlayer.c: minor stylistic simplification of sdlayer_checkversion(). DONT_BUILD. git-svn-id: https://svn.eduke32.com/eduke32@4964 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/sdlayer.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/polymer/eduke32/build/src/sdlayer.c b/polymer/eduke32/build/src/sdlayer.c index 9153f1658..978c01916 100644 --- a/polymer/eduke32/build/src/sdlayer.c +++ b/polymer/eduke32/build/src/sdlayer.c @@ -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);