diff options
Diffstat (limited to 'taipan.c')
-rw-r--r-- | taipan.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -11,7 +11,7 @@ /* define this to use cc65's rand() instead of POKEY's RANDOM register. Leave disabled for now as POKEY never returns 0 (it's an LFSR, I should have known that would happen...) */ -// #define POKEY_RANDOM +#define POKEY_RANDOM /* define this for testing sea_battle(). it causes a pirate attack every time you leave port. Don't leave defined for @@ -73,11 +73,11 @@ extern void __fastcall__ jsleep(unsigned int j); /* Atari-specific random number functions from rand.s. Non-Atari platforms can probably just: #define initrand() _randomize() -#define randi() rand() +#define randi() ((unsigned int)rand()) #define randl() (unsigned long)((randi() << 16) | randi()) */ -#if POKEY_RANDOM +#ifdef POKEY_RANDOM #define initrand() /* no-op on Atari */ /* random positive int, 0 to 32767 */ extern unsigned int __fastcall__ randi(void); |