[Scummvm-cvs-logs] SF.net SVN: scummvm:[47346] scummvm/trunk/engines/sci/engine/kmisc.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Sun Jan 17 21:17:02 CET 2010
Revision: 47346
http://scummvm.svn.sourceforge.net/scummvm/?rev=47346&view=rev
Author: m_kiewitz
Date: 2010-01-17 20:17:00 +0000 (Sun, 17 Jan 2010)
Log Message:
-----------
SCI: speed throttler - hardcoded exception for room 290/lsl3, should fix pushup count later in the game
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kmisc.cpp
Modified: scummvm/trunk/engines/sci/engine/kmisc.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kmisc.cpp 2010-01-17 20:00:58 UTC (rev 47345)
+++ scummvm/trunk/engines/sci/engine/kmisc.cpp 2010-01-17 20:17:00 UTC (rev 47346)
@@ -56,9 +56,16 @@
s->restarting_flags &= ~SCI_GAME_WAS_RESTARTED;
}
- // Some games seem to get the duration of main loop initially and then switch of animations for the whole game
- // based on that (qfg2, iceman). We are now running full speed initially to avoid that.
+ // LSL3 calculates a machinespeed variable during game startup (right after the filthy questions)
+ // This one would go through w/o throttling resulting in having to do 1000 pushups or something
+ // Another way of handling this would be delaying incrementing of "machineSpeed" selector
+ if (s->_gameId == "lsl3" && s->currentRoomNumber() == 290)
+ s->_throttleTrigger = true;
+
if (s->_throttleTrigger) {
+ // Some games seem to get the duration of main loop initially and then switch of animations for the whole game
+ // based on that (qfg2, iceman). We are now running full speed initially to avoid that.
+ // It seems like we dont need to do that anymore
//if (s->_throttleCounter < 50) {
// s->_throttleCounter++;
// return s->r_acc;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list