From 2b0af749036b17a661d0dfa24e7662f5e5c05546 Mon Sep 17 00:00:00 2001 From: Jesse Ruderman Date: Sat, 10 Jul 2021 03:53:42 -0700 Subject: [PATCH] Fix some messages when using Orb of the Warp --- pcmove.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcmove.cpp b/pcmove.cpp index fb2c8f17..dd3e052b 100644 --- a/pcmove.cpp +++ b/pcmove.cpp @@ -751,7 +751,7 @@ void pcmove::tell_why_cannot_attack() { addMessage(XLAT("You cannot attack Sandworms directly!")); else if(c2->monst == moHexSnake || c2->monst == moHexSnakeTail) addMessage(XLAT("You cannot attack Rock Snakes directly!")); - else if(nonAdjacent(c2, cwt.at)) + else if(nonAdjacentPlayer(c2, cwt.at)) addMessage(XLAT("You cannot attack diagonally!")); else if(thruVine(c2, cwt.at)) addMessage(XLAT("You cannot attack through the Vine!")); @@ -935,7 +935,7 @@ bool pcmove::move_if_okay() { void pcmove::tell_why_impassable() { cell*& c2 = mi.t; - if(nonAdjacent(cwt.at,c2)) { + if(nonAdjacentPlayer(cwt.at,c2)) { if(vmsg(miRESTRICTED)) addMessage(geosupport_football() < 2 ? XLAT("You cannot move between the cells without dots here!") : XLAT("You cannot move between the triangular cells here!")