changeset 19283:f18d3cacc087 draft

(svn r24172) -Cleanup: Lighthouse and transmitter no longer need special treatment to not appear in the object GUI.
author frosch <frosch@openttd.org>
date Sun, 22 Apr 2012 16:28:42 +0000
parents dc8f5155e141
children 3f7ec39a9fb1
files src/newgrf_object.cpp
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf_object.cpp
+++ b/src/newgrf_object.cpp
@@ -99,9 +99,6 @@
 template <typename Tspec, typename Tid, Tid Tmax>
 /* static */ void NewGRFClass<Tspec, Tid, Tmax>::InsertDefaults()
 {
-	/* We only add the transmitters in the scenario editor. */
-	if (_game_mode != GM_EDITOR) return;
-
 	ObjectClassID cls = ObjectClass::Allocate('LTHS');
 	ObjectClass::Get(cls)->name = STR_OBJECT_CLASS_LTHS;
 	_object_specs[OBJECT_LIGHTHOUSE].cls_id = cls;