-
The code "if ( rand() < (int)(RAND_MAX * p) ) vs[i+WIDTH] = type;" in the Emit function fails to work properly for p = 1.0f. My guess is that (int)(RAND_MAX * p) is equal to 1 higher than the maximum integer. Changing the code to "if ( rand() < (unsigned int)(RAND_MAX * p) ) vs[i+WIDTH] = type;" fixes this bug. It is possible that some machines might cast int to a larger primitive...
2007-01-31 09:05:15 UTC by nobody
-
two things that u should have reactions that use up
to 3 or 4 touchin materials and can have like a none
optoin so it is like fire touches mud makes fire
dirt and water, need explosions, and less than energy
reactions like water is lower then 30 degrees make ice
also im learning C++ and i migh be able to help.
2006-08-03 00:11:38 UTC by nobody
-
dashival committed patchset 27 of module sdlsand to the SDL Sand CVS repository, changing 1 files.
2006-03-03 20:59:01 UTC by dashival
-
dashival committed patchset 26 of module sdlsand to the SDL Sand CVS repository, changing 1 files.
2006-02-24 17:48:57 UTC by dashival
-
thomas_sidor committed patchset 25 of module sdlsand to the SDL Sand CVS repository, changing 1 files.
2006-02-24 13:17:43 UTC by thomas_sidor
-
dashival committed patchset 24 of module sdlsand to the SDL Sand CVS repository, changing 1 files.
2006-02-24 00:43:09 UTC by dashival
-
thomas_sidor committed patchset 23 of module sdlsand to the SDL Sand CVS repository, changing 1 files.
2006-02-23 16:58:39 UTC by thomas_sidor
-
thomas_sidor committed patchset 22 of module sdlsand to the SDL Sand CVS repository, changing 1 files.
2006-02-23 15:46:32 UTC by thomas_sidor
-
dashival committed patchset 21 of module sdlsand to the SDL Sand CVS repository, changing 1 files.
2006-02-23 02:55:16 UTC by dashival
-
dashival committed patchset 20 of module sdlsand to the SDL Sand CVS repository, changing 1 files.
2006-02-22 23:26:06 UTC by dashival