Quote:
Originally Posted by ImmortalYashi
if(SpawnNumber < MaxSpawnNumber * 2)
{
while (SpawnNumber < MaxSpawnNumber)
{
}
}
Should do it oh and you should never use a != : if not equal so it can be > or <
|
It makes no difference, even if the
!= statement returns true (say
SpawnNumber=31 and
MaxSpawnNumber=30)
Although the statement:
SpawnNumber != MaxSpawnNumber will return true, and then proceed onto the while loop, the while loops statement
SpawnNumber < MaxSpawnNumber returns false, therefore the while loop never executes itself.
+1 on the good practice though.