1
0
Fork 0

MazezaM: small change (rand vs. rand())

This commit is contained in:
acn 2020-07-01 09:22:39 +02:00
parent ca01ada15c
commit 94da8293f2
2 changed files with 4 additions and 5 deletions

View File

@ -28,7 +28,7 @@
#include <stdio.h> // We use printf(); putchar();
#include <string.h> // strlen for the Level name centering.
#include <stdlib.h> // We use rand(); srand();
#include <conio.h> // We use kbhit();
#include <conio.h> // We use getk();
#define LEVELS 42 // Number of Levels
#define TRUE 1
@ -705,7 +705,7 @@ void Title()
int main()
{
int Mazeno,Loop,rand;
int Mazeno,Loop;
printf("\033[?25l"); // Hide Cursor escape sequence
@ -729,7 +729,7 @@ int main()
{
gotogxy(l+j-3,t+i-1);
InverseOn();
printf(ARGH[rand%9]);
printf(ARGH[rand()%9]);
InverseOff();
getkey();
Level(Mazeno);
@ -762,7 +762,7 @@ int main()
}
InverseOn();
i=t+rx;
switch (rand%6)
switch (rand()%6)
{
case 0:
gotogxy(13,i);
@ -880,7 +880,6 @@ int main()
PressedKey=0;
if (bCloseFlag) break;
rand++;
}
if (bCloseFlag) break;
}

Binary file not shown.