summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/game.cpp b/src/game.cpp
index f6a2133f..95a74568 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -61,6 +61,8 @@ Engine *engine = NULL;
OkDialog *deathNotice = NULL;
ConfirmDialog *exitConfirm = NULL;
+Being *target = NULL;
+
#define EMOTION_TIME 150
#define MAX_TIME 10000
@@ -322,10 +324,6 @@ void do_input()
// buddyWindow->setVisible(!buddyWindow->isVisible());
// used = true;
//}
- //else if (keysym.sym == SDLK_m) {
- // menu->setVisible(!menu->isVisible());
- // used = true;
- //}
}
if (event.key.keysym.sym == SDLK_ESCAPE)
@@ -416,10 +414,10 @@ void do_input()
attack(target);
}
else if (target->isPlayer()) {
- // Begin a trade
- WFIFOW(0) = net_w_value(0x00e4);
- WFIFOL(2) = net_l_value(target->id);
- WFIFOSET(6);
+ // Show menu
+ menu->setVisible(!menu->isVisible());
+ // Pass target to menu
+ menu->setBeing(target);
}
}
}