]> granicus.if.org Git - nethack/commitdiff
U1231 - messages ordering when displacing a pet into a trap
authorcohrs <cohrs>
Tue, 18 Jan 2005 15:23:47 +0000 (15:23 +0000)
committercohrs <cohrs>
Tue, 18 Jan 2005 15:23:47 +0000 (15:23 +0000)
move the message so it's before the mintrap test.  newsym's are needed
to ensure the display is correct if a --More-- prompt results.  I left the
"frighten" message alone, except for tense.  As per Pat's suggestion, I
changed the wording to future-proof the message.

doc/fixes35.0
src/hack.c

index 41d200cc713875e514eebd2629ea7479552a4f2c..c2a04b4a7702e028994ba094e93b79c18ffe6b08 100644 (file)
@@ -73,6 +73,8 @@ reviving invisible troll could appear visible until it moves
 adjust some of the shop repair messages
 charge for reviving a shop owned corpse or reanimating a shop owned statue
 filled trap doors on castle can be re-dug
+message order when swapping places with a pet (e.g. into a trap), also use
+       different term instead of "displace"
 
 
 Platform- and/or Interface-Specific Fixes
index fdc80e92bbac5c8c5d1621d69cbb561eadd55bbc..e0732b756f20a0aeba0818188c2228301b56bcc5 100644 (file)
@@ -1380,12 +1380,15 @@ domove()
                mtmp->mtrapped = 0;
                remove_monster(x, y);
                place_monster(mtmp, u.ux0, u.uy0);
+               newsym(x, y);
+               newsym(u.ux0, u.uy0);
+
+               You("%s %s.", mtmp->mtame ? "swap places with" : "frighten",
+                   pnambuf);
 
                /* check for displacing it into pools and traps */
                switch (minliquid(mtmp) ? 2 : mintrap(mtmp)) {
                case 0:
-                   You("%s %s.", mtmp->mtame ? "displaced" : "frightened",
-                       pnambuf);
                    break;
                case 1:         /* trapped */
                case 3:         /* changed levels */