Little fixes.
authorsaiam
Mon, 01 Dec 2008 22:35:54 +0000
changeset 165 26e6a87a9085
parent 164 1d4772967cd0
child 166 f72e131f626f
Little fixes.
src/proto2/Physics.cc
src/proto2/Terrain.cc
--- a/src/proto2/Physics.cc	Mon Dec 01 22:32:58 2008 +0000
+++ b/src/proto2/Physics.cc	Mon Dec 01 22:35:54 2008 +0000
@@ -50,7 +50,6 @@
     
     // Go up but not if the wall is over two pixels
     if(world.collides(cursor)) {
-   
         for(int height = 0, max = 2; height < max+42; height++) {
             
             if(height >= max)
--- a/src/proto2/Terrain.cc	Mon Dec 01 22:32:58 2008 +0000
+++ b/src/proto2/Terrain.cc	Mon Dec 01 22:35:54 2008 +0000
@@ -214,8 +214,8 @@
 Vector direction(const Vector &v) {
     Vector tmp(v);
     if (tmp.length() > 0) tmp /= tmp.length();
-    tmp.x = round(tmp.x);
-    tmp.y = round(tmp.y);
+    tmp.x = (uint16_t)(tmp.x);
+    tmp.y = (uint16_t)(tmp.y);
     return tmp;
 }