From cbdcd71c294fba40cc172b9bc55f528a34e0528f Mon Sep 17 00:00:00 2001 From: Alexander Baldeck Date: Sun, 19 Dec 2004 17:07:33 +0000 Subject: removed alfont usage (obsolete dependency now) --- src/game.cpp | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 8ff147b8..1f54bb95 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -290,10 +290,6 @@ void do_input() { int npc_x = mouse_x/32+camera_x; int npc_y = mouse_y/32+camera_y; int id = find_npc(npc_x, npc_y); - /*char tyr[20]; - sprintf(tyr,"%i %i %i", npc_x, npc_y, id); - alert(tyr,"","","","",0,0); - alfont_textprintf(screen, gui_font, mouse_x+20, mouse_y+20, MAKECOL_WHITE, "%i %i", npc_x, npc_y);*/ if(id!=0) { WFIFOW(0) = net_w_value(0x0090); WFIFOL(2) = net_l_value(id); @@ -363,7 +359,7 @@ void do_parse() { node->speech = temp; node->speech_time = SPEECH_TIME; node->speech_color = makecol(255, 255, 255); - chatlog.chat_log(node->speech, BY_OTHER, gui_font); + chatlog.chat_log(node->speech, BY_OTHER, font); } break; case 0x008e: @@ -382,9 +378,9 @@ void do_parse() { player_node->speech_color = makecol(255, 255, 255); if(id==0x008e) - chatlog.chat_log(player_node->speech, BY_PLAYER, gui_font); + chatlog.chat_log(player_node->speech, BY_PLAYER, font); else - chatlog.chat_log(player_node->speech, BY_GM, gui_font); + chatlog.chat_log(player_node->speech, BY_GM, font); } break; // Success to walk request @@ -572,7 +568,7 @@ void do_parse() { action.bskill == BSKILL_EMOTE ) { printf("Action: %d/%d", action.bskill, action.success); } - chatlog.chat_log(action, gui_font); + chatlog.chat_log(action, font); break; // Update stat values case 0x00b0: @@ -746,26 +742,26 @@ void do_parse() { show_npc_dialog = 4; for(int k=0;k0) - chatlog.chat_log("Unable to pick up item", BY_SERVER, gui_font); + chatlog.chat_log("Unable to pick up item", BY_SERVER, font); else inventory.add_item(RFIFOW(2), RFIFOW(6), RFIFOW(4)); break; @@ -807,7 +803,7 @@ void do_parse() { break; // Display MVP payer case 0x010c: - chatlog.chat_log("MVP player", BY_SERVER, gui_font); + chatlog.chat_log("MVP player", BY_SERVER, font); break; // Item drop case 0x009e: -- cgit v1.2.3-70-g09d2