From e336a186df348b67f11f09c00cc1dc41c39464d1 Mon Sep 17 00:00:00 2001 From: Alexander Baldeck Date: Tue, 14 Dec 2004 11:16:54 +0000 Subject: *** empty log message *** --- src/game.cpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index cdf4f7c2..8ff147b8 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -95,7 +95,7 @@ void game() { status("INIT"); do_init(); init_graphic(); - while(state!=EXIT) { + while(state!=EXIT) { status("INPUT"); do_input(); status("GRAPHIC"); @@ -104,7 +104,7 @@ void game() { do_parse(); status("FLUSH"); flush(); - + //rest(1); // This one should work only in Win32 } @@ -236,8 +236,8 @@ void do_input() { screen_mode = 1-(screen_mode-1)+1;//Bug is here if( 0 != set_gfx_mode(screen_mode, 800, 600, 0, 0))//less than: to add support for other hardware platforms error(allegro_error); - } - + } + if(key[KEY_F11] && action_time==true) show_setup = true; @@ -397,8 +397,8 @@ void do_parse() { if(RFIFOL(2)>server_tick) { walk_status = 2; server_tick = RFIFOL(2); - } - } + } + } break; // Add new being / stop monster case 0x0078: @@ -577,9 +577,9 @@ void do_parse() { // Update stat values case 0x00b0: switch(RFIFOW(2)) { - case 0x0000: + /*case 0x0000: player_node->speed; - break; + break;*/ case 0x0005: char_info->hp = RFIFOW(4); break; @@ -614,14 +614,14 @@ void do_parse() { // Stop walking /*case 0x0088: // Disabled because giving some problems if(node = find_node(RFIFOL(2))) { - //if(node->id!=player_node->id) { - /*char ids[20]; + if(node->id!=player_node->id) { + char ids[20]; sprintf(ids,"%i",RFIFOL(2)); - alert(ids,"","","","",0,0);*/ - /*node->action = STAND; + alert(ids,"","","","",0,0); + node->action = STAND; node->frame = 0; set_coordinates(node->coordinates, RFIFOW(6), RFIFOW(8), get_direction(node->coordinates)); - //} + } } break;*/ // Damage, sit, stand up @@ -746,7 +746,7 @@ void do_parse() { show_npc_dialog = 4; for(int k=0;khair_style = RFIFOB(7); - } - break; + } + break; // Manage non implemented packets default: //printf("%x\n",id); -- cgit v1.2.3-70-g09d2