Ticket #3058: 3058.2.diff

File 3058.2.diff, 694 bytes (added by Stan, 9 years ago)

Better Fix

  • data/mods/public/maps/random/islands.js

     
    217217    //create docks
    218218    var dockLocation = getTIPIADBON([ix, iz], [mapSize / 2, mapSize / 2], [-3 , 2.6], 0.5, 3);
    219219    if (dockLocation !== undefined)
    220         placeObject(dockLocation[0], dockLocation[1], "structures/" + g_MapSettings.PlayerData[id-1].Civ + "_dock", id, playerAngle[i] + PI);
     220        placeObject(dockLocation[0], dockLocation[1], "structures/" + getCivCode(id-1) + "_dock", id, playerAngle[i] + PI);
    221221}
    222222
    223223var landAreas = [];