diff options
Diffstat (limited to 'internal/game/cmd_room_insert.go')
| -rw-r--r-- | internal/game/cmd_room_insert.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/cmd_room_insert.go b/internal/game/cmd_room_insert.go index 09b2e74..8087cca 100644 --- a/internal/game/cmd_room_insert.go +++ b/internal/game/cmd_room_insert.go @@ -81,7 +81,7 @@ func (g *Game) roomInsert(sess *net.Session, args []string) { if len(conflicts) > 0 { for _, c := range conflicts { switch c.Kind { - case "twist": + case world.GridConflictTwist: room, _ := g.World.LoadRoom(c.Target) conflictName := fmt.Sprintf("#%d", c.Target) if room != nil { @@ -90,7 +90,7 @@ func (g *Game) roomInsert(sess *net.Session, args []string) { sess.WriteLine(fmt.Sprintf( "Cannot insert: room %s would have an ambiguous grid position after insertion (reachable via an alternate path from here).", conflictName)) - case "overlap": + case world.GridConflictOverlap: occRoom, _ := g.World.LoadRoom(c.Occupier) occName := fmt.Sprintf("#%d", c.Occupier) if occRoom != nil { |
