This commit is contained in:
parent
9324df29c7
commit
02316b71b3
4 changed files with 55 additions and 22 deletions
|
|
@ -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())){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue