Skip to content

Commit

Permalink
fix tile creation for aoe
Browse files Browse the repository at this point in the history
  • Loading branch information
tivvit committed Oct 12, 2023
1 parent 3ef1777 commit 41c5195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/dungeonsandtrolls/game.go
Original file line number Diff line number Diff line change
Expand Up @@ -963,9 +963,9 @@ func (g *Game) AlwaysGetObjectsOnPosition(c *api.Coordinates) (*api.MapObjects,
var foundLevel *api.Level
for _, l := range g.Game.Map.Levels {
if l.Level != c.Level {
foundLevel = l
continue
}
foundLevel = l
for _, o := range l.Objects {
if o.Position.PositionX == c.PositionX && o.Position.PositionY == c.PositionY {
found = true
Expand Down

0 comments on commit 41c5195

Please sign in to comment.