| version 1.2 | version 1.3 | |||
|---|---|---|---|---|
| 
 | 
 | |||
| * Inferno High Scores and Statistics System | * Inferno High Scores and Statistics System | |||
| * | * | |||
| * $Log$ | * $Log$ | |||
| * Revision 1.3 2003/03/09 06:41:01 donut | ||||
| * change byte typedef to sbyte to avoid conflict with win32 byte which is unsigned | ||||
| * | ||||
| * Revision 1.2 1999/11/20 10:05:18 donut | * Revision 1.2 1999/11/20 10:05:18 donut | |||
| * variable size menu patch from Jan Bobrowski. Variable menu font size support and a bunch of fixes for menus that didn't work quite right, by me (MPM). | * variable size menu patch from Jan Bobrowski. Variable menu font size support and a bunch of fixes for menus that didn't work quite right, by me (MPM). | |||
| * | * | |||
| 
 | 
 | |||
| typedef struct stats_info { | typedef struct stats_info { | |||
| char name[CALLSIGN_LEN+1]; | char name[CALLSIGN_LEN+1]; | |||
| int score; | int score; | |||
| byte starting_level; | sbyte starting_level; | |||
| byte ending_level; | sbyte ending_level; | |||
| byte diff_level; | sbyte diff_level; | |||
| short kill_ratio; // 0-100 | short kill_ratio; // 0-100 | |||
| short hostage_ratio; // | short hostage_ratio; // | |||
| int seconds; // How long it took in seconds... | int seconds; // How long it took in seconds... | |||
| 
 | 
 | |||
| typedef struct all_scores { | typedef struct all_scores { | |||
| char signature[3]; // DHS | char signature[3]; // DHS | |||
| byte version; // version | sbyte version; // version | |||
| char cool_saying[COOL_MESSAGE_LEN]; | char cool_saying[COOL_MESSAGE_LEN]; | |||
| stats_info stats[MAX_HIGH_SCORES]; | stats_info stats[MAX_HIGH_SCORES]; | |||
| } __pack__ all_scores; | } __pack__ all_scores; | |||
| 
 | 
 | |||
| fix t1; | fix t1; | |||
| int i,done,looper; | int i,done,looper; | |||
| int k; | int k; | |||
| byte fades[64] = { 1,1,1,2,2,3,4,4,5,6,8,9,10,12,13,15,16,17,19,20,22,23,24,26,27,28,28,29,30,30,31,31,31,31,31,30,30,29,28,28,27,26,24,23,22,20,19,17,16,15,13,12,10,9,8,6,5,4,4,3,2,2,1,1 }; | sbyte fades[64] = { 1,1,1,2,2,3,4,4,5,6,8,9,10,12,13,15,16,17,19,20,22,23,24,26,27,28,28,29,30,30,31,31,31,31,31,30,30,29,28,28,27,26,24,23,22,20,19,17,16,15,13,12,10,9,8,6,5,4,4,3,2,2,1,1 }; | |||
| grs_canvas canvas; | grs_canvas canvas; | |||
| ReshowScores: | ReshowScores: | 
| Legend: | |
| line(s) removed in v.1.2 | |
| line(s) changed | |
| line(s) added in v.1.3 | |