1
0
Fork 0

(svn r25938) -Fix [FS#5798] (r25876): Don't mistake a lighthouse for a transmitter and vice versa

release/1.4
planetmaker 2013-11-04 17:59:58 +00:00
parent 673599941f
commit 86a658ca21
1 changed files with 2 additions and 2 deletions

View File

@ -746,11 +746,11 @@ void GenerateObjects()
/* Now try to place the requested amount of this object */
for (uint j = ScaleByMapSize(1000); j != 0 && amount != 0 && Object::CanAllocateItem(); j--) {
switch (i) {
case OBJECT_LIGHTHOUSE:
case OBJECT_TRANSMITTER:
if (TryBuildTransmitter()) amount--;
break;
case OBJECT_TRANSMITTER:
case OBJECT_LIGHTHOUSE:
if (TryBuildLightHouse()) amount--;
break;