| version 1.13, 2003/08/03 21:34:19 |
version 1.14, 2003/08/12 20:51:00 |
|
|
| * All rights reserved. |
* All rights reserved. |
| */ |
*/ |
| |
|
| /* $Platon: games/mines/mines.c,v 1.12 2003/07/20 12:18:56 nepto Exp $ */ |
/* $Platon: games/mines/mines.c,v 1.13 2003/08/03 21:34:19 nepto Exp $ */ |
| |
|
| #define PSQUARE_DYNAMIC_ALLOCATION (0) |
#define PSQUARE_DYNAMIC_ALLOCATION (0) |
| #define ASSERTION_USAGE (1) |
#define ASSERTION_USAGE (1) |
|
|
| |
|
| #include <system.h> |
#include <system.h> |
| |
|
| #if PLATON_SYSTEM_SVGALIB |
#if PLATON_SYSTEM_SVGALIB || PLATON_SYSTEM_X11 |
| # include <dos2linux.h> |
# include <dos2linux.h> |
| #endif |
#endif |
| |
|
|
|
| # define RAND_INT(__lo, __hi) (__lo + random(__hi - __lo + 1)) |
# define RAND_INT(__lo, __hi) (__lo + random(__hi - __lo + 1)) |
| #endif |
#endif |
| |
|
| #if PLATON_SYSTEM_SVGALIB |
#if PLATON_SYSTEM_SVGALIB || PLATON_SYSTEM_X11 |
| # define RAND_INT(__lo, __hi) (__lo + (random() % (__hi - __lo + 1))) |
# define RAND_INT(__lo, __hi) (__lo + (random() % (__hi - __lo + 1))) |
| #endif |
#endif |
| |
|
| Line 270 int main(int argc,char*argv[]) |
|
| Line 270 int main(int argc,char*argv[]) |
|
| hiscore_init(argv[0], HISCORE_AUTODETECT); |
hiscore_init(argv[0], HISCORE_AUTODETECT); |
| #elif PLATON_SYSTEM_WIN32 |
#elif PLATON_SYSTEM_WIN32 |
| hiscore_init("c:\\windows\\mines.hsc", 0L); |
hiscore_init("c:\\windows\\mines.hsc", 0L); |
| #elif PLATON_SYSTEM_SVGALIB |
#elif PLATON_SYSTEM_SVGALIB || PLATON_SYSTEM_X11 |
| hiscore_init("/var/lib/games/mines/hiscore.dat", 0L); |
hiscore_init("/var/lib/games/mines/hiscore.dat", 0L); |
| #else |
#else |
| # error hiscore not initialized |
# error hiscore not initialized |