This commit is contained in:
Jesper Lundin 2007-04-18 11:56:07 +00:00
parent 9324df29c7
commit 02316b71b3
4 changed files with 55 additions and 22 deletions

View file

@ -58,7 +58,7 @@ public class InGameMouseInput extends MouseInput{
//selecting unit.
if(event==RIGHT_MOUSE_BUTTON) {
for(int i=0; i<selected.size(); i++) {
selected.get(i).attack(new Vector2f(pos.getX(), pos.getY()));
selected.get(i).attack(new Vector2i(pos.getX(), pos.getY()));
}
}
else if(!map.isPosEmpty(pos.getX(), pos.getY())){