summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-10-17 17:45:19 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-10-17 17:48:39 +0200
commita500c675a87bf11e7d5980d208555002149d8ccc (patch)
tree12dfd4241c74517524dd5883957c7cf3042915d2 /src/utils
parentc911fa41d12dbb9f33d51977ba578e83bfdd3be4 (diff)
downloadmanaserv-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.cpp2
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)