diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-10-17 17:45:19 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-10-17 17:48:39 +0200 |
commit | a500c675a87bf11e7d5980d208555002149d8ccc (patch) | |
tree | 12dfd4241c74517524dd5883957c7cf3042915d2 /src/utils | |
parent | c911fa41d12dbb9f33d51977ba578e83bfdd3be4 (diff) | |
download | manaserv-a500c675a87bf11e7d5980d208555002149d8ccc.tar.gz manaserv-a500c675a87bf11e7d5980d208555002149d8ccc.tar.xz manaserv-a500c675a87bf11e7d5980d208555002149d8ccc.zip |
Dehardcode the tileWidth and height, except for the speed conversion.
The speed conversion needs a standard tile length anyway
and can be improved later once the movement code
will start to handle beings size.
Reviewed-by: Crush.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/speedconv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/speedconv.cpp b/src/utils/speedconv.cpp index 14d328f..18602ab 100644 --- a/src/utils/speedconv.cpp +++ b/src/utils/speedconv.cpp @@ -22,7 +22,7 @@ double utils::tpsToSpeed(double tps) { - return (32000 / (tps * DEFAULT_TILE_LENGTH)); + return (32000 / (tps * DEFAULT_TILE_LENGTH)); } double utils::speedToTps(double speed) |