The FORTRAN-derived longs were semantically ints. Make it so.
Note. because we used fixed-length declrations in the right places, this shouldn't break saves. (Besides being right, this will someday make a port to Go a touch easier, if we decide to do that.)
This commit is contained in:
parent
b8c9cf90d8
commit
81af59974b
7 changed files with 56 additions and 56 deletions
4
init.c
4
init.c
|
@ -43,13 +43,13 @@ struct game_t game = {
|
|||
.foobar = WORD_EMPTY,
|
||||
};
|
||||
|
||||
long initialise(void)
|
||||
int initialise(void)
|
||||
{
|
||||
if (settings.oldstyle)
|
||||
printf("Initialising...\n");
|
||||
|
||||
srand(time(NULL));
|
||||
long seedval = (long)rand();
|
||||
int seedval = (int)rand();
|
||||
set_seed(seedval);
|
||||
|
||||
for (int i = 1; i <= NOBJECTS; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue