forked from mirror/OpenTTD
(svn r25938) -Fix [FS#5798] (r25876): Don't mistake a lighthouse for a transmitter and vice versa
This commit is contained in:
@@ -746,11 +746,11 @@ void GenerateObjects()
|
|||||||
/* Now try to place the requested amount of this object */
|
/* Now try to place the requested amount of this object */
|
||||||
for (uint j = ScaleByMapSize(1000); j != 0 && amount != 0 && Object::CanAllocateItem(); j--) {
|
for (uint j = ScaleByMapSize(1000); j != 0 && amount != 0 && Object::CanAllocateItem(); j--) {
|
||||||
switch (i) {
|
switch (i) {
|
||||||
case OBJECT_LIGHTHOUSE:
|
case OBJECT_TRANSMITTER:
|
||||||
if (TryBuildTransmitter()) amount--;
|
if (TryBuildTransmitter()) amount--;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OBJECT_TRANSMITTER:
|
case OBJECT_LIGHTHOUSE:
|
||||||
if (TryBuildLightHouse()) amount--;
|
if (TryBuildLightHouse()) amount--;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user