(svn r20656) -Codechange: implement counting of objects

This commit is contained in:
rubidium
2010-08-28 18:23:14 +00:00
parent a4bb23b7ad
commit 63478d8533
4 changed files with 50 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
#include "../stdafx.h"
#include "../object_base.h"
#include "../object_map.h"
#include "saveload.h"
#include "newgrf_sl.h"
@@ -50,6 +51,7 @@ static void Ptrs_OBJS()
Object *o;
FOR_ALL_OBJECTS(o) {
SlObject(o, _object_desc);
Object::IncTypeCount(GetObjectType(o->location.tile));
}
}