play_controller::check_victory(): use underscore in event name
Semantically this doesn't change anything because spaces in event names are automatically replaced with underscores. I just spent a considerable amount of time searching for code that fires the enemies_defeated event, only to find that it's called "enemies defeated", with a space, at the call site. Let's use the underscored name everywhere to make the function easier to find.
This commit is contained in:
parent
531b91359a
commit
3cbf249b66
1 changed files with 1 additions and 1 deletions
|
@ -949,7 +949,7 @@ void play_controller::check_victory()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (found_player || found_network_player) {
|
if (found_player || found_network_player) {
|
||||||
pump().fire("enemies defeated");
|
pump().fire("enemies_defeated");
|
||||||
if (is_regular_game_end()) {
|
if (is_regular_game_end()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue