Map wird nicht mehr gedreht und gespiegelt angezeigt. (Der Server vertauscht tatsächlich col und row)

This commit is contained in:
2014-05-02 09:33:38 +02:00
parent fd0e6c2fc6
commit 62e695db24
3 changed files with 11 additions and 11 deletions

View File

@@ -74,11 +74,11 @@ namespace WorldOfPeacecraft
public void PaintMap (Graphics g)
{
ITile[,] Map = Backend.GetMap ();
if (Map != null) {
for (int y = 0; y < Map.GetLength(1); y++) {
for (int x = 0; x < Map.GetLength(0); x++) {
PaintTile (g, Map [x, y], x, y);
ITile[,] map = Backend.GetMap ();
if (map != null) {
for (int y = 0; y < map.GetLength(1); y++) {
for (int x = 0; x < map.GetLength(0); x++) {
PaintTile (g, map [x, y], x, y);
}
}
}
@@ -97,12 +97,12 @@ namespace WorldOfPeacecraft
} // Stupid parenthesis
else if (tile.IsHuntable ()) {
color = Color.BurlyWood;
} else if (tile.IsWater ()) {
color = Color.Blue;
} else if (tile.IsWalkable ()) {
color = Color.Yellow;
} else if (tile.IsWall ()) {
color = Color.DarkGray;
} else if (tile.IsWater ()) {
color = Color.Blue;
} else {
color = Color.Black;
}