Fixed several bugs, including one where dialogs were not redrawn properly and one where random numbers were not in the expected range.

git-svn-id: http://openexile.googlecode.com/svn/trunk@36 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
2009-04-27 13:14:24 +00:00
parent fa528023e7
commit 74ec4c67b5
14 changed files with 47 additions and 36 deletions

View File

@@ -194,7 +194,7 @@ void Initialize(void)
OSErr error;
//SysEnvRec theWorld;
unsigned long randSeed;
// unsigned long randSeed;
BitMap screenBits;
@@ -273,8 +273,9 @@ void Initialize(void)
// will always be different. Dont for each call of Random, or the sequence
// will no longer be random. Only needed once, here in the init.
//
GetDateTime(&randSeed);
SetQDGlobalsRandomSeed((long)randSeed);
//GetDateTime(&randSeed);
// SetQDGlobalsRandomSeed((long)randSeed);
srand(time(NULL));
//
// Make a new window for drawing in, and it must be a color window.