Carbine sounds, and testing 15 dmg for smg

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4911 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-05-18 16:36:38 +00:00
parent d6bd9a2ba7
commit 5835817777
9 changed files with 21 additions and 10 deletions
+7 -3
View File
@@ -25,8 +25,9 @@ const char *numtime()
}
extern char *maplayout;
extern int maplayout_factor, Mvolume, Marea;
extern int maplayout_factor, Mvolume, Marea, Mopen;
extern float Mheight;
extern int checkarea(char *maplayout);
mapstats *loadmapstats(const char *filename, bool getlayout)
{
@@ -83,7 +84,7 @@ mapstats *loadmapstats(const char *filename, bool getlayout)
char *t = NULL;
char floor = 0, ceil;
int diff;
Mvolume = Marea = 0;
Mvolume = Marea = Mopen = 0;
loopk(layoutsize)
{
char *c = maplayout + k;
@@ -128,7 +129,10 @@ mapstats *loadmapstats(const char *filename, bool getlayout)
t = c;
}
if(fail) { DELETEA(maplayout); }
else Mheight = Marea ? (float)Mvolume/Marea : 0;
else {
Mheight = Marea ? (float)Mvolume/Marea : 0;
Mopen = checkarea(maplayout);
}
}
}
delete f;