summaryrefslogtreecommitdiffstats
path: root/games/xlogical/files/patch-tile__spinner.cpp
blob: f8e4bad0bcdc362846e059c1b093054ad6f20ef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- tile_spinner.cpp.orig	2014-06-10 17:24:39.000000000 +0000
+++ tile_spinner.cpp
@@ -21,6 +21,7 @@
 ////////////////////////////////////////////////////////////////////////
 
 
+#include <cstdlib>
 
 
 // Application Includes
@@ -46,7 +47,7 @@ Ctile_spinner::Ctile_spinner( void )
 	finished = 0;
 	finishing_hopper = -1;
 	flashOn = 0;
-	flashWait = rand( ) % 5;
+	flashWait = std::rand( ) % 5;
 
 	// Reset the hopper
 	hopper[0] = NULL;
@@ -477,7 +478,7 @@ Ctile_spinner::check_complete( void )
 				if( CURMAP->randOrder == 1 )
 				{
 					// Randomize a new color
-					CURMAP->order[2] = (color_t)(rand( )%4 + 1);
+					CURMAP->order[2] = (color_t)(std::rand( )%4 + 1);
 				} else {
 					// Set the next one to null
 					CURMAP->order[2] = NO_COLOR;
OpenPOWER on IntegriCloud