Skip to content

Commit

Permalink
Fixed|Client: Mistake in logic after old GUI code removal
Browse files Browse the repository at this point in the history
"!stopTime" is always true now that stopTime has been removed.
  • Loading branch information
skyjake committed Apr 4, 2014
1 parent 79ab42b commit 2981492
Showing 1 changed file with 18 additions and 21 deletions.
39 changes: 18 additions & 21 deletions doomsday/client/src/dd_loop.cpp
Expand Up @@ -254,33 +254,30 @@ static void advanceTime(timespan_t delta)

sysTime += delta;

if(/*!stopTime ||*/ netGame)
{
oldGameTic = SECONDS_TO_TICKS(gameTime);
oldGameTic = SECONDS_TO_TICKS(gameTime);

// The difference between gametic and demotic is that demotic
// is not altered at any point. Gametic changes at handshakes.
gameTime += delta;
demoTime += delta;
// The difference between gametic and demotic is that demotic
// is not altered at any point. Gametic changes at handshakes.
gameTime += delta;
demoTime += delta;

if(DD_IsSharpTick())
if(DD_IsSharpTick())
{
// When a new sharp tick begins, we want that the 35 Hz tick
// calculated from gameTime also changes. If this is not the
// case, we will adjust gameTime slightly so that it syncs again.
if(oldGameTic == SECONDS_TO_TICKS(gameTime))
{
// When a new sharp tick begins, we want that the 35 Hz tick
// calculated from gameTime also changes. If this is not the
// case, we will adjust gameTime slightly so that it syncs again.
if(oldGameTic == SECONDS_TO_TICKS(gameTime))
{
LOGDEV_XVERBOSE("Syncing gameTime with sharp ticks (tic=%i pos=%f)")
<< oldGameTic << frameTimePos;
LOGDEV_XVERBOSE("Syncing gameTime with sharp ticks (tic=%i pos=%f)")
<< oldGameTic << frameTimePos;

// Realign.
gameTime = (SECONDS_TO_TICKS(gameTime) + 1) / 35.f;
}
// Realign.
gameTime = (SECONDS_TO_TICKS(gameTime) + 1) / 35.f;
}

// World time always advances unless a local game is paused on client-side.
App_WorldSystem().advanceTime(delta);
}

// World time always advances unless a local game is paused on client-side.
App_WorldSystem().advanceTime(delta);
}

void DD_ResetTimer(void)
Expand Down

0 comments on commit 2981492

Please sign in to comment.