summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-15 23:45:39 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-15 23:45:39 +0000
commit7b81d4151ef4fe04a5aabcc4fe258ee40115ef0b (patch)
tree711ad9a5597de3014921b9fb36206f21595cdf05 /src/game.cpp
parent13f82f10d92816d0239db56b7936fd2403f50897 (diff)
downloadmana-7b81d4151ef4fe04a5aabcc4fe258ee40115ef0b.tar.gz
mana-7b81d4151ef4fe04a5aabcc4fe258ee40115ef0b.tar.bz2
mana-7b81d4151ef4fe04a5aabcc4fe258ee40115ef0b.tar.xz
mana-7b81d4151ef4fe04a5aabcc4fe258ee40115ef0b.zip
Fixed screenshot taking and changed chat box in Guichan widget.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/game.cpp b/src/game.cpp
index b38f1368..84e642dd 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -140,6 +140,7 @@ void game() {
do_input();
engine->draw();
+ gui->logic();
graphics->updateScreen();
do_parse();
flush();
@@ -402,7 +403,7 @@ void do_parse() {
being->speech = temp;
being->speech_time = SPEECH_TIME;
being->speech_color = makecol(255, 255, 255);
- chatlog.chat_log(being->speech, BY_OTHER, font);
+ chatBox->chat_log(being->speech, BY_OTHER);
}
break;
case 0x008e:
@@ -421,10 +422,10 @@ void do_parse() {
player_node->speech_color = makecol(255, 255, 255);
if(id==0x008e) {
- chatlog.chat_log(player_node->speech, BY_PLAYER, font);
+ chatBox->chat_log(player_node->speech, BY_PLAYER);
}
else {
- chatlog.chat_log(player_node->speech, BY_GM, font);
+ chatBox->chat_log(player_node->speech, BY_GM);
}
}
break;
@@ -637,7 +638,7 @@ void do_parse() {
action.bskill == BSKILL_EMOTE ) {
printf("Action: %d/%d", action.bskill, action.success);
}
- chatlog.chat_log(action, font);
+ chatBox->chat_log(action);
break;
// Update stat values
case 0x00b0:
@@ -842,27 +843,27 @@ void do_parse() {
}
}
else {
- chatlog.chat_log("Nothing to sell", BY_SERVER, font);
+ chatBox->chat_log("Nothing to sell", BY_SERVER);
}
break;
// Answer to buy
case 0x00ca:
- if(RFIFOB(2)==0)
- chatlog.chat_log("Thanks for buying", BY_SERVER, font);
+ if (RFIFOB(2) == 0)
+ chatBox->chat_log("Thanks for buying", BY_SERVER);
else
- chatlog.chat_log("Unable to buy", BY_SERVER, font);
+ chatBox->chat_log("Unable to buy", BY_SERVER);
break;
// Answer to sell
case 0x00cb:
- if(RFIFOB(2)==0)
- chatlog.chat_log("Thanks for selling", BY_SERVER, font);
+ if (RFIFOB(2) == 0)
+ chatBox->chat_log("Thanks for selling", BY_SERVER);
else
- chatlog.chat_log("Unable to sell", BY_SERVER, font);
+ chatBox->chat_log("Unable to sell", BY_SERVER);
break;
// Add item to inventory after you bought it
case 0x00a0:
- if(RFIFOB(22)>0)
- chatlog.chat_log("Unable to pick up item", BY_SERVER, font);
+ if (RFIFOB(22) > 0)
+ chatBox->chat_log("Unable to pick up item", BY_SERVER);
else
inventoryWindow->addItem(RFIFOW(2), RFIFOW(6), RFIFOW(4));
break;
@@ -909,7 +910,7 @@ void do_parse() {
break;
// Display MVP payer
case 0x010c:
- chatlog.chat_log("MVP player", BY_SERVER, font);
+ chatBox->chat_log("MVP player", BY_SERVER);
break;
// Item drop
case 0x009e: