version 1.31 | | version 1.32 |
---|
| | |
* Game loop for Inferno | | * Game loop for Inferno |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.32 2003/07/01 03:31:09 donut |
| | * Add netgame bandwidth/packet usage to pause info display. |
| | * |
* Revision 1.31 2003/06/27 08:17:35 donut | | * Revision 1.31 2003/06/27 08:17:35 donut |
* hack from sekmu to fix crash on exit from netgames in windows port | | * hack from sekmu to fix crash on exit from netgames in windows port |
* | | * |
| | |
#include "controls.h" | | #include "controls.h" |
#include "newmenu.h" | | #include "newmenu.h" |
#include "network.h" | | #include "network.h" |
| | #include "netstats.h" |
#include "gamefont.h" | | #include "gamefont.h" |
#include "endlevel.h" | | #include "endlevel.h" |
#include "joydefs.h" | | #include "joydefs.h" |
| | |
| | |
gr_get_string_size("level: 24:37:56 ", &w, &h, &aw ); | | gr_get_string_size("level: 24:37:56 ", &w, &h, &aw ); |
gr_printf(x1+w,y,"total: %i:%02i:%02i",Players[Player_num].hours_total,f2i(Players[Player_num].time_total) / 60 % 60,f2i(Players[Player_num].time_total) % 60);//x1+w was 110 | | gr_printf(x1+w,y,"total: %i:%02i:%02i",Players[Player_num].hours_total,f2i(Players[Player_num].time_total) / 60 % 60,f2i(Players[Player_num].time_total) % 60);//x1+w was 110 |
| | |
| | y+=(GAME_FONT->ft_h+2); |
| | if (net_stats_pktoverhead>0) |
| | gr_printf(0,y,"recv: %2ip/s %3i(%3i)B/s send: %2ip/s %3i(%3i)B/s", |
| | net_stats.rpkts, net_stats.rbytes, |
| | net_stats.rbytes+net_stats.rpkts*net_stats_pktoverhead, |
| | net_stats.wpkts, net_stats.wbytes, |
| | net_stats.wbytes+net_stats.wpkts*net_stats_pktoverhead); |
| | else if (net_stats_pktoverhead<0) |
| | gr_printf(0,y,"recv: %2ip/s %3i(?)B/s send: %2ip/s %3i(?)B/s",net_stats.rpkts, net_stats.rbytes, net_stats.wpkts, net_stats.wbytes); |
| | else |
| | gr_printf(0,y,"recv: %2ip/s %3iB/s send: %2ip/s %3iB/s",net_stats.rpkts, net_stats.rbytes, net_stats.wpkts, net_stats.wbytes); |
| | |
gr_get_string_size("ABCDEFGH 999/", &x1, &h, &aw ); | | gr_get_string_size("ABCDEFGH 999/", &x1, &h, &aw ); |
gr_get_string_size("999(", &x2, &h, &aw );x2+=x1; | | gr_get_string_size("999(", &x2, &h, &aw );x2+=x1; |