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
This commit is contained in:
Rafael Barreto
2011-06-04 15:06:42 +00:00
parent ad12e10ea5
commit f891f1dff3
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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)
{
+1 -1
View File
@@ -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();