On City Raze, previous owner doesn't pay Road Maintenance (#9706)

This commit is contained in:
itanasi 2023-07-02 04:53:19 -07:00 committed by GitHub
parent 589a9fa29f
commit 753358c1f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,8 +58,8 @@ open class Tile : IsPartOfGameInfoSerialization {
} }
roadOwner = city.civ.civName // only when taking control, otherwise last owner roadOwner = city.civ.civName // only when taking control, otherwise last owner
} else if (roadStatus != RoadStatus.None && owningCity != null) { } else if (roadStatus != RoadStatus.None && owningCity != null) {
// previous tile owner still owns road, add to tracker // Razing City! Remove owner
owningCity!!.civ.neutralRoads.add(this.position) roadOwner = ""
} }
owningCity = city owningCity = city
isCityCenterInternal = getCity()?.location == position isCityCenterInternal = getCity()?.location == position