Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SJuliez committed May 17, 2024
1 parent 55e2bae commit 637ce46
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions megamek/src/megamek/client/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -694,13 +694,13 @@ protected void receiveAttack(Packet c) {


// Should be private?
public String receiveReport(List<Report> v) {
if (v == null) {
public String receiveReport(List<Report> reports) {
if (reports == null) {
return "[null report vector]";
}

StringBuffer report = new StringBuffer();
for (Report r : v) {
for (Report r : reports) {
report.append(r.getText());
}

Expand Down
2 changes: 1 addition & 1 deletion megamek/src/megamek/client/bot/BotClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ protected void receiveBuildingCollapse(Packet packet) {
* Let's save ourselves a little processing time and not deal with any of it
*/
@Override
public String receiveReport(List<Report> v) {
public String receiveReport(List<Report> reports) {
return "";
}

Expand Down
1 change: 0 additions & 1 deletion megamek/src/megamek/client/ui/swing/MovementDisplay.java
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,6 @@ public void clear() {
// clear board cursors
clientgui.getBoardView().select(null);
clientgui.getBoardView().cursor(null);
// clientgui.clearTemporarySprites();

if (ce == null) {
return;
Expand Down
1 change: 0 additions & 1 deletion megamek/src/megamek/server/GameManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -2311,7 +2311,6 @@ protected void endCurrentPhase() {
break;
case DEPLOYMENT:
game.clearDeploymentThisRound();
// game.checkForCompleteDeployment();
Enumeration<Player> pls = game.getPlayers();
while (pls.hasMoreElements()) {
Player p = pls.nextElement();
Expand Down

0 comments on commit 637ce46

Please sign in to comment.