tFix to prevent you from pressing 'D' when you are attacked by the cops. - vaccinewars - be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars
Log
Files
Refs
README
LICENSE
---
commit 314d01442271283786a0ef6a404b5a2fc7ec4aa5
parent 47e8fccb34163ba766127b67daac20aadd3ef831
Author: Ben Webb 
Date:   Tue, 17 Jun 2003 12:00:57 +0000

Fix to prevent you from pressing 'D' when you are attacked by the cops.


Diffstat:
  M src/curses_client/curses_client.c   |       8 +++++---

1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/curses_client/curses_client.c b/src/curses_client/curses_client.c
t@@ -2605,9 +2605,11 @@ static void Curses_DoGame(Player *Play)
     } else if (DisplayMode == DM_FIGHT) {
       switch (c) {
       case 'D':
-        DisplayMode = DM_STREET;
-        if (!(Play->Flags & FIGHTING) && HaveAbility(Play, A_DONEFIGHT)) {
-          SendClientMessage(Play, C_NONE, C_DONE, NULL, NULL);
+        if (!RunHere || fp == F_LASTLEAVE) {
+          DisplayMode = DM_STREET;
+          if (!(Play->Flags & FIGHTING) && HaveAbility(Play, A_DONEFIGHT)) {
+            SendClientMessage(Play, C_NONE, C_DONE, NULL, NULL);
+          }
         }
         break;
       case 'R':