Permalink
Browse files

SAGA: Deduplicate kScriptTimeTicksPerSecond constant

  • Loading branch information...
bonki authored and sev- committed May 6, 2018
1 parent de1a35a commit a4ab2d8cfe5cb5db0f5ccb7854bbd726a5fa0eaf
Showing with 1 addition and 5 deletions.
  1. +1 −5 engines/saga/saga.h
View
@@ -311,7 +311,6 @@ enum GameObjectTypes {
enum ScriptTimings {
kScriptTimeTicksPerSecond = (728L/10L),
kScriptTimeTicksPerSecondIHNM = 72,
kRepeatSpeedTicks = (728L/10L)/3,
kNormalFadeDuration = 320, // 64 steps, 5 msec each
kQuickFadeDuration = 64, // 64 steps, 1 msec each
@@ -586,10 +585,7 @@ class SagaEngine : public Engine {
}
inline int ticksToMSec(int tick) const {
if (getGameId() == GID_ITE)
return tick * 1000 / kScriptTimeTicksPerSecond;
else
return tick * 1000 / kScriptTimeTicksPerSecondIHNM;
return tick * 1000 / kScriptTimeTicksPerSecond;
}
private:

0 comments on commit a4ab2d8

Please sign in to comment.