From f891f1dff32feb3fc6bf262b8447910119644a73 Mon Sep 17 00:00:00 2001 From: Rafael Barreto Date: Sat, 4 Jun 2011 15:06:42 +0000 Subject: [PATCH] ty tempest! changing diff from char to int git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6496 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/tools.cpp | 3 ++- source/src/worldio.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/src/tools.cpp b/source/src/tools.cpp index a72b4343..bf84ce18 100644 --- a/source/src/tools.cpp +++ b/source/src/tools.cpp @@ -84,7 +84,8 @@ mapstats *loadmapstats(const char *filename, bool getlayout) testlayout = new char[layoutsize + 256]; memset(testlayout, 0, layoutsize * sizeof(char)); char *t = NULL; - char floor = 0, ceil, diff = 0; + char floor = 0, ceil; + int diff = 0; Mvolume = Marea = SHhits = 0; loopk(layoutsize) { diff --git a/source/src/worldio.cpp b/source/src/worldio.cpp index e518077d..11872404 100644 --- a/source/src/worldio.cpp +++ b/source/src/worldio.cpp @@ -548,7 +548,7 @@ bool load_world(char *mname) // still supports all map formats that have DELETEA(mlayout); mlayout = new char[cubicsize + 256]; memset(mlayout, 0, cubicsize * sizeof(char)); - char diff = 0; + int diff = 0; Mv = Ma = Hhits = 0; if(!mapinfo.numelems || (mapinfo.access(mname) && !cmpf(cgzname, mapinfo[mname]))) world = (sqr *)ents.getbuf();