Little fixes.
--- 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;
}