Strip trailing whitespace.
This commit is contained in:
parent
e9334cb661
commit
e7ed48bff1
4 changed files with 9 additions and 9 deletions
|
@ -1573,7 +1573,7 @@ private:
|
|||
};
|
||||
|
||||
|
||||
|
||||
|
||||
class bad_recalls_remover {
|
||||
public:
|
||||
bad_recalls_remover(const std::map<std::string, int> unit_combat_scores)
|
||||
|
@ -1678,7 +1678,7 @@ bool ai_default_recruitment_stage::do_play_stage()
|
|||
std::string id;
|
||||
if (analyze_recall_list()) {
|
||||
while ( !(id = find_suitable_recall_id()).empty() ) {
|
||||
|
||||
|
||||
recall_result_ptr recall_res = check_recall_action(id);
|
||||
if (recall_res->is_ok()) {
|
||||
recall_res->execute();
|
||||
|
|
|
@ -130,7 +130,7 @@ public:
|
|||
* The signal handler has three callback queues:
|
||||
* * pre_child These callbacks are called before a container widget sends it
|
||||
* to the child items. Widgets without children should also use this
|
||||
* queue.
|
||||
* queue.
|
||||
* * child The callbacks for the proper child widget(s) are called.
|
||||
* * post_child The callbacks for the parent container to be called after
|
||||
* the child.
|
||||
|
@ -139,7 +139,7 @@ public:
|
|||
* back.
|
||||
*
|
||||
* Whether all three queues are executed depend on the whether the
|
||||
* callbacks modify the handled and halt flag.
|
||||
* callbacks modify the handled and halt flag.
|
||||
* * When the halt flag is set execution of the current queue stops, when
|
||||
* doing so the handled flag must be set as well.
|
||||
* * When the handled flag is set the events in that queue are executed and
|
||||
|
|
|
@ -72,7 +72,7 @@ enum tevent {
|
|||
*
|
||||
* This helper is needed as a user can't supply the wrong kind of callback
|
||||
* functions to tdispatcher::connect_signal. If a wrong callback would be send
|
||||
* it will never get called.
|
||||
* it will never get called.
|
||||
*
|
||||
* This version is for callbacks without extra parameters.
|
||||
* NOTE some mouse functions like MOUSE_ENTER don't send the mouse coordinates
|
||||
|
|
|
@ -475,7 +475,7 @@ bool mouse_handler::left_click(int x, int y, const bool browse)
|
|||
// (update shroud/fog, clear undo if needed)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// a WML event could have invalidated both attacker and defender
|
||||
// so make sure they're valid before attacking
|
||||
u = find_unit(attack_from);
|
||||
|
@ -685,8 +685,8 @@ int mouse_handler::show_attack_dialog(const map_location& attacker_loc, const ma
|
|||
|
||||
// add dummy names if missing, to keep stats aligned
|
||||
std::string attw_name = attw.name();
|
||||
if(attw_name.empty())
|
||||
attw_name = " ";
|
||||
if(attw_name.empty())
|
||||
attw_name = " ";
|
||||
std::string defw_name = defw.name();
|
||||
if(defw_name.empty())
|
||||
defw_name = " ";
|
||||
|
@ -731,7 +731,7 @@ int mouse_handler::show_attack_dialog(const map_location& attacker_loc, const ma
|
|||
}
|
||||
cursor::set(cursor::NORMAL);
|
||||
|
||||
return res;
|
||||
return res;
|
||||
}
|
||||
|
||||
void mouse_handler::attack_enemy(unit_map::iterator attacker, unit_map::iterator defender, int choice)
|
||||
|
|
Loading…
Add table
Reference in a new issue