mirror of https://github.com/OpenTTD/OpenTTD
(svn r24172) -Cleanup: Lighthouse and transmitter no longer need special treatment to not appear in the object GUI.
parent
971b3b5fa5
commit
f0559db37c
|
@ -99,9 +99,6 @@ void ResetObjects()
|
||||||
template <typename Tspec, typename Tid, Tid Tmax>
|
template <typename Tspec, typename Tid, Tid Tmax>
|
||||||
/* static */ void NewGRFClass<Tspec, Tid, Tmax>::InsertDefaults()
|
/* 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');
|
ObjectClassID cls = ObjectClass::Allocate('LTHS');
|
||||||
ObjectClass::Get(cls)->name = STR_OBJECT_CLASS_LTHS;
|
ObjectClass::Get(cls)->name = STR_OBJECT_CLASS_LTHS;
|
||||||
_object_specs[OBJECT_LIGHTHOUSE].cls_id = cls;
|
_object_specs[OBJECT_LIGHTHOUSE].cls_id = cls;
|
||||||
|
|
Loading…
Reference in New Issue