Fixed the mouse y invert thingy

This commit is contained in:
Ziver Koc 2007-04-15 19:27:36 +00:00
parent 5d07cd2dee
commit 575e0158ea
3 changed files with 8 additions and 9 deletions

View file

@ -53,9 +53,9 @@ public class Map {
* @return The coordinate of the pos
*/
public Vector2f getPixelByPos(int x, int y){
x = (int)(POS_SIZE*x);
y = (int)(POS_SIZE*y);
return new Vector2f((int)x,(int)y);
float xf = (POS_SIZE*x);
float yf = (POS_SIZE*y);
return new Vector2f(xf,yf);
}
/**