summaryrefslogtreecommitdiff
path: root/src/object_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-27 22:21:23 +0000
committerrubidium <rubidium@openttd.org>2010-08-27 22:21:23 +0000
commit3e9e1b8e659c7fe36ac2188fb86ac601a8210d50 (patch)
tree914d8fa55046ec016a4a6ca60210ceba87bad2c8 /src/object_cmd.cpp
parent01927590a52ee49192a47335d4509d91e0c5d27d (diff)
downloadopenttd-3e9e1b8e659c7fe36ac2188fb86ac601a8210d50.tar.xz
(svn r20638) -Codechange: split object.h
Diffstat (limited to 'src/object_cmd.cpp')
-rw-r--r--src/object_cmd.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/object_cmd.cpp b/src/object_cmd.cpp
index 0385b28a9..c92ff4580 100644
--- a/src/object_cmd.cpp
+++ b/src/object_cmd.cpp
@@ -30,6 +30,7 @@
#include "core/pool_func.hpp"
#include "object_map.h"
#include "object_base.h"
+#include "newgrf_object.h"
#include "date_func.h"
#include "table/strings.h"
@@ -49,17 +50,6 @@ void InitializeObjects()
_object_pool.CleanPool();
}
-/* static */ const ObjectSpec *ObjectSpec::Get(ObjectType index)
-{
- assert(index < OBJECT_MAX);
- return &_original_objects[index];
-}
-
-/* static */ const ObjectSpec *ObjectSpec::GetByTile(TileIndex tile)
-{
- return ObjectSpec::Get(GetObjectType(tile));
-}
-
void BuildObject(ObjectType type, TileIndex tile, CompanyID owner, Town *town)
{
const ObjectSpec *spec = ObjectSpec::Get(type);