Skip to content

Commit

Permalink
Removed an unused variable
Browse files Browse the repository at this point in the history
Not needed after I removed the draw() calls into the display class
  • Loading branch information
Vultraz committed Jul 26, 2017
1 parent a912148 commit be2e073
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/actions/move.cpp
Expand Up @@ -1121,8 +1121,6 @@ namespace { // Private helpers for move_unit()
// Alias some resources.
game_display &disp = *resources::screen;

bool redraw = false;

// Multiple messages may be displayed simultaneously
// this variable is used to keep them from overlapping
std::string message_prefix = "";
Expand All @@ -1131,15 +1129,13 @@ namespace { // Private helpers for move_unit()
if ( ambushed_ && show_ambush_alert_ ) {
disp.announce(message_prefix + ambush_string_, font::BAD_COLOR);
message_prefix += " \n";
redraw = true;
}

// Failed teleport feedback?
if ( playing_team_is_viewing_ && teleport_failed_ ) {
std::string teleport_string = _("Failed teleport! Exit not empty");
disp.announce(message_prefix + teleport_string, font::BAD_COLOR);
message_prefix += " \n";
redraw = true;
}

// Sighted units feedback?
Expand Down Expand Up @@ -1169,7 +1165,6 @@ namespace { // Private helpers for move_unit()

disp.announce(message_prefix + message, msg_color);
message_prefix += " \n";
redraw = true;
}

// Suggest "continue move"?
Expand All @@ -1182,7 +1177,6 @@ namespace { // Private helpers for move_unit()
std::string message = vgettext("(press $hotkey to keep moving)", symbols);
disp.announce(message_prefix + message, font::NORMAL_COLOR);
message_prefix += " \n";
redraw = true;
}
}
}
Expand Down

0 comments on commit be2e073

Please sign in to comment.