Diff for games/mines/mines.c between version 1.3 and 1.4
| version 1.3, 2003/05/21 13:58:30 |
version 1.4, 2003/06/22 18:40:34 |
|
|
| /* $Platon: games/mines/mines.c,v 1.2 2003/05/18 22:51:41 nepto Exp $ */ |
/* $Platon: games/mines/mines.c,v 1.3 2003/05/21 13:58:30 nepto Exp $ */ |
| |
|
| /* CONSTS */ |
/* CONSTS */ |
| #define EXENAME "mines.exe" |
#define EXENAME "mines.exe" |
|
|
| |
|
| #include <system.h> |
#include <system.h> |
| |
|
| #if PLATON_SYSTEM_LINUX |
#if PLATON_SYSTEM_SVGALIB |
| # 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_LINUX |
#if PLATON_SYSTEM_SVGALIB |
| # define RAND_INT(__lo, __hi) (__lo + (random() % (__hi - __lo + 1))) |
# define RAND_INT(__lo, __hi) (__lo + (random() % (__hi - __lo + 1))) |
| #endif |
#endif |
| |
|
| Line 213 int main(int argc,char*argv[]) |
|
| Line 213 int main(int argc,char*argv[]) |
|
| #if PLATON_SYSTEM_MSDOS |
#if PLATON_SYSTEM_MSDOS |
| hiscore_init(argv[0], HISCORE_AUTODETECT); |
hiscore_init(argv[0], HISCORE_AUTODETECT); |
| #endif |
#endif |
| #if PLATON_SYSTEM_LINUX |
#if PLATON_SYSTEM_SVGALIB |
| hiscore_init("/var/lib/games/mines/hiscore.dat", 0L); |
hiscore_init("/var/lib/games/mines/hiscore.dat", 0L); |
| #endif |
#endif |
| if (GraphInit() < 0) |
if (GraphInit() < 0) |
Platon Group <platon@platon.org> http://platon.org/
|
|