MazezaM: small change (rand vs. rand())
This commit is contained in:
parent
ca01ada15c
commit
94da8293f2
@ -28,7 +28,7 @@
|
|||||||
#include <stdio.h> // We use printf(); putchar();
|
#include <stdio.h> // We use printf(); putchar();
|
||||||
#include <string.h> // strlen for the Level name centering.
|
#include <string.h> // strlen for the Level name centering.
|
||||||
#include <stdlib.h> // We use rand(); srand();
|
#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 LEVELS 42 // Number of Levels
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
@ -705,7 +705,7 @@ void Title()
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
int Mazeno,Loop,rand;
|
int Mazeno,Loop;
|
||||||
|
|
||||||
printf("\033[?25l"); // Hide Cursor escape sequence
|
printf("\033[?25l"); // Hide Cursor escape sequence
|
||||||
|
|
||||||
@ -729,7 +729,7 @@ int main()
|
|||||||
{
|
{
|
||||||
gotogxy(l+j-3,t+i-1);
|
gotogxy(l+j-3,t+i-1);
|
||||||
InverseOn();
|
InverseOn();
|
||||||
printf(ARGH[rand%9]);
|
printf(ARGH[rand()%9]);
|
||||||
InverseOff();
|
InverseOff();
|
||||||
getkey();
|
getkey();
|
||||||
Level(Mazeno);
|
Level(Mazeno);
|
||||||
@ -762,7 +762,7 @@ int main()
|
|||||||
}
|
}
|
||||||
InverseOn();
|
InverseOn();
|
||||||
i=t+rx;
|
i=t+rx;
|
||||||
switch (rand%6)
|
switch (rand()%6)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
gotogxy(13,i);
|
gotogxy(13,i);
|
||||||
@ -880,7 +880,6 @@ int main()
|
|||||||
|
|
||||||
PressedKey=0;
|
PressedKey=0;
|
||||||
if (bCloseFlag) break;
|
if (bCloseFlag) break;
|
||||||
rand++;
|
|
||||||
}
|
}
|
||||||
if (bCloseFlag) break;
|
if (bCloseFlag) break;
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user