/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE. COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. */ /* * * Kill matrix displayed at end of level. * */ #ifdef NETWORK #include #include #include #include #include #include #include "error.h" #include "pstypes.h" #include "gr.h" #include "key.h" #include "palette.h" #include "game.h" #include "gamefont.h" #include "u_mem.h" #include "newmenu.h" #include "menu.h" #include "player.h" #include "screens.h" #include "mouse.h" #include "joy.h" #include "timer.h" #include "text.h" #include "rbaudio.h" #include "multi.h" #include "kmatrix.h" #include "gauges.h" #include "pcx.h" #ifdef OGL #include "ogl_init.h" #endif static int rescale_x(int x) { return x * GWIDTH / 320; } static int rescale_y(int y) { return y * GHEIGHT / 200; } #define CENTERING_OFFSET(x) ((300 - (70 + (x)*25 ))/2) int kmatrix_kills_changed = 0; void kmatrix_draw_item( int i, int *sorted ) { int j, x, y; y = rescale_y(50+i*9); // Print player name. gr_printf( rescale_x(CENTERING_OFFSET(N_players)), y, "%s", Players[sorted[i]].callsign ); for (j=0; jcv_font = MEDIUM3_FONT; gr_string( 0x8000, rescale_y(15), TXT_KILL_MATRIX_TITLE ); grd_curcanv->cv_font = GAME_FONT; multi_get_kill_list(sorted); kmatrix_draw_names(sorted); for (i=0; i entry_time+MAX_VIEW_TIME) done=1; if (network && (Game_mode & GM_NETWORK)) { kmatrix_kills_changed = 0; multi_endlevel_poll2(0, NULL, &key, 0); if ( kmatrix_kills_changed ) { kmatrix_redraw(); } if (key < -1) done = 1; } gr_flip(); } game_flush_inputs(); } #endif