diff options
author | Simei Yin | 2018-05-27 22:11:16 +0200 |
---|---|---|
committer | Simei Yin | 2018-05-27 22:11:38 +0200 |
commit | 881c94636162fc56ea9f409bce6390e959bbd6a1 (patch) | |
tree | 6d5e7130ba284186853c5e6b5c1121b3d4aa7d7d /engines/sludge/builtin.cpp | |
parent | bf3084df0eff1f21c9bc94d4254dff11e71b31bc (diff) | |
download | scummvm-rg350-881c94636162fc56ea9f409bce6390e959bbd6a1.tar.gz scummvm-rg350-881c94636162fc56ea9f409bce6390e959bbd6a1.tar.bz2 scummvm-rg350-881c94636162fc56ea9f409bce6390e959bbd6a1.zip |
SLUDGE: Move global variable lastFramesPerSecond to class Timer
Diffstat (limited to 'engines/sludge/builtin.cpp')
-rw-r--r-- | engines/sludge/builtin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp index 0867f7cdf3..8646dd46a3 100644 --- a/engines/sludge/builtin.cpp +++ b/engines/sludge/builtin.cpp @@ -56,7 +56,6 @@ namespace Sludge { Variable *launchResult = NULL; -extern int lastFramesPerSecond; extern bool allowAnyFilename; extern VariableStack *noStack; extern StatusStuff *nowStatus; @@ -2403,7 +2402,7 @@ builtIn(_rem_launchWith) { builtIn(getFramesPerSecond) { UNUSEDALL - setVariable(fun->reg, SVT_INT, lastFramesPerSecond); + setVariable(fun->reg, SVT_INT, g_sludge->_timer.getLastFps()); return BR_CONTINUE; } |