Skip to content

Commit 89f4db1

Browse files
committed
Fix the city update breaking things. One of those rare cases where there's no Git conflict, but it still breaks, in this case due to the interface/abstract class name changing.
There probably is a way to set up actions to compile with the base on the MR, and thus catch this sort of thing. Alternately, always rebasing and running prior to merging.
1 parent f44147d commit 89f4db1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

C7/MapView.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public override void drawObject(LooseView looseView, Tile tile, Vector2 tileCent
150150
if (hpHeight < 1)
151151
hpHeight = 1;
152152
var hpContentsRect = new Rect2(hpIndBackgroundRect.Position + new Vector2(1, hpIndHeight - 1 - hpHeight), // position
153-
new Vector2(hpIndWidth - 2, hpHeight)); // size
153+
new Vector2(hpIndWidth - 2, hpHeight)); // size
154154
looseView.DrawRect(hpContentsRect, getHPColor(hpFraction));
155155
if (unit.isFortified)
156156
looseView.DrawRect(hpIndBackgroundRect, white, false);
@@ -192,7 +192,7 @@ public override void drawObject(LooseView looseView, Tile tile, Vector2 tileCent
192192
}
193193
}
194194

195-
public class CityLayer : ILooseLayer {
195+
public class CityLayer : LooseLayer {
196196
private ImageTexture cityTexture;
197197
private Vector2 citySpriteSize;
198198

@@ -203,7 +203,7 @@ public CityLayer()
203203
this.citySpriteSize = new Vector2(167, 95);
204204
}
205205

206-
public void drawObject(LooseView looseView, Tile tile, Vector2 tileCenter)
206+
public override void drawObject(LooseView looseView, Tile tile, Vector2 tileCenter)
207207
{
208208
if (tile.cityAtTile != null) {
209209
City city = tile.cityAtTile;

0 commit comments

Comments
 (0)