maxdim comments, fix the Marea value, shotgun frag fix (i thought it was already committed)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5251 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-06-29 15:47:32 +00:00
parent c9e3702197
commit ec9df808b2
4 changed files with 15 additions and 12 deletions
+4 -4
View File
@@ -85,12 +85,12 @@ mapstats *loadmapstats(const char *filename, bool getlayout)
{
char *c = testlayout + k;
int type = f->getchar();
int n = 1;
switch(type)
{
case 255:
{
int n = f->getchar();
if(!t || n < 0) { fail = true; break; }
if(!t || (n = f->getchar()) < 0) { fail = true; break; }
memset(c, *t, n);
k += n - 1;
break;
@@ -118,8 +118,8 @@ mapstats *loadmapstats(const char *filename, bool getlayout)
break;
}
if ( type != SOLID && diff > 6 ) {
Marea++;
Mvolume+=diff;
Marea += n;
Mvolume += diff * n;
}
if(fail) break;
t = c;