From e061cf25541dc191591864dc47d098882d25c478 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 2 Jun 2007 01:22:53 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1081 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/src/main.cpp b/source/src/main.cpp index 2c770038..739a37a8 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -103,6 +103,12 @@ void screenres(int w, int h, int bpp = 0) glViewport(0, 0, w, h); #endif } +#if defined(WIN32) || defined(__APPLE__) || !defined(WIN32) +void setresdata(char *s, enet_uint32 c) +{ + mapinfo[newstring(s)] = c; +} +#endif COMMAND(screenres, ARG_3INT); @@ -303,7 +309,7 @@ int main(int argc, char **argv) gzread(f, s, sizeof(string)); enet_uint32 c; gzread(f, &c, sizeof(enet_uint32)); - mapinfo[newstring(s)] = c; + setresdata(s, c); } gzclose(f); }