From b3ee6b0badf91e521797483cbd20cc51b9117a83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 18 Jan 2015 21:37:34 +0100 Subject: Board: remove useless setPawnOnto(... , float) --- core/src/ch/asynk/tankontank/engine/Board.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java index 5ec1210..ffc26cc 100644 --- a/core/src/ch/asynk/tankontank/engine/Board.java +++ b/core/src/ch/asynk/tankontank/engine/Board.java @@ -408,17 +408,12 @@ public abstract class Board implements Disposable, Animation public Pawn setPawnOnto(Pawn pawn, Move move) { pawn.move(move); - return setPawnOnto(pawn, move.to, move.orientation.r()); + return setPawnOnto(pawn, move.to, move.orientation); } public Pawn setPawnOnto(Pawn pawn, Tile tile, Orientation o) { - return setPawnOnto(pawn, tile, o.r()); - } - - public Pawn setPawnOnto(Pawn pawn, Tile tile, float r) - { - pawn.setOnTile(tile, r); + pawn.setOnTile(tile, o.r()); pushPawnOnto(pawn, tile); return pawn; } -- cgit v1.1-2-g2b99