tFix to prevent you from pressing 'D' when you are attacked by the cops. - vaccinewars - be a doctor and try to vaccinate the world
HTML git clone git://src.adamsgaard.dk/vaccinewars
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 314d01442271283786a0ef6a404b5a2fc7ec4aa5
DIR parent 47e8fccb34163ba766127b67daac20aadd3ef831
HTML Author: Ben Webb <ben@salilab.org>
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(-)
---
DIR 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':