From 5d07cd2deecd93864c41bcff558fe815c0bd46e3 Mon Sep 17 00:00:00 2001 From: Ziver Koc Date: Sun, 15 Apr 2007 19:09:56 +0000 Subject: [PATCH] Fixed the move thing. The units moves to the right pixel now --- src/ei/game/scene/Map.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ei/game/scene/Map.java b/src/ei/game/scene/Map.java index 656e230..2f708ce 100644 --- a/src/ei/game/scene/Map.java +++ b/src/ei/game/scene/Map.java @@ -52,9 +52,9 @@ public class Map { * @param y y pos * @return The coordinate of the pos */ - public Vector2f getPixelByPos(float x, float y){ - x = (int)(POS_SIZE*x*1.2f); - y = (int)(POS_SIZE*y*1.2f); + public Vector2f getPixelByPos(int x, int y){ + x = (int)(POS_SIZE*x); + y = (int)(POS_SIZE*y); return new Vector2f((int)x,(int)y); }