diff --git a/sc2/ChangeLog b/sc2/ChangeLog index c61dc1c60..2b4ce74c8 100644 --- a/sc2/ChangeLog +++ b/sc2/ChangeLog @@ -1,4 +1,5 @@ 0.2: +- Clock semaphore is now created with a value of 0 -PhracturedBlue - Rewrote Semaphore debugging code to be more useful - PhracturedBlue - Better fix for clearing load/save screen - fOSSiL - Implemented bilinear scaling in pure SDL mode - Mika diff --git a/sc2/src/sc2code/init.c b/sc2/src/sc2code/init.c index 2cf684185..c70c70e90 100644 --- a/sc2/src/sc2code/init.c +++ b/sc2/src/sc2code/init.c @@ -264,6 +264,9 @@ InitGlobData (void) GLOBAL (glob_flags) = (BYTE)i; GLOBAL (DisplayArray) = DisplayArray; - (GLOBAL (GameClock)).clock_sem = CreateSemaphore(1, "Clock"); + // The clock semaphore was initially initialized as '1' + // but it is always cleared before set, so it toggled between + // 2 and 1, which doesn't actually do anything + (GLOBAL (GameClock)).clock_sem = CreateSemaphore(0, "Clock"); }