Skip to content

Commit

Permalink
replaced recieve with receive
Browse files Browse the repository at this point in the history
  • Loading branch information
kallaballa authored and GregoryLundberg committed Nov 30, 2017
1 parent de9f234 commit 9148d97
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/play_controller.hpp
Expand Up @@ -264,7 +264,7 @@ class play_controller : public controller_base, public events::observer, public

virtual bool is_networked_mp() const { return false; }
virtual void send_to_wesnothd(const config&, const std::string& = "unknown") const { }
virtual bool recieve_from_wesnothd(config&) const { return false; }
virtual bool receive_from_wesnothd(config&) const { return false; }
void show_objectives() const;
protected:
struct scoped_savegame_snapshot
Expand Down
6 changes: 3 additions & 3 deletions src/playmp_controller.cpp
Expand Up @@ -300,12 +300,12 @@ void playmp_controller::wait_for_upload()
}

} catch(const quit_game_exception&) {
network_reader_.set_source([this](config& cfg) { return recieve_from_wesnothd(cfg);});
network_reader_.set_source([this](config& cfg) { return receive_from_wesnothd(cfg);});
turn_data_.send_data();
throw;
}
}
network_reader_.set_source([this](config& cfg) { return recieve_from_wesnothd(cfg);});
network_reader_.set_source([this](config& cfg) { return receive_from_wesnothd(cfg);});
}

void playmp_controller::after_human_turn(){
Expand Down Expand Up @@ -492,7 +492,7 @@ void playmp_controller::send_to_wesnothd(const config& cfg, const std::string&)
mp_info_->connection.send_data(cfg);
}
}
bool playmp_controller::recieve_from_wesnothd(config& cfg) const
bool playmp_controller::receive_from_wesnothd(config& cfg) const
{
if (mp_info_ != nullptr) {
return mp_info_->connection.receive_data(cfg);
Expand Down
2 changes: 1 addition & 1 deletion src/playmp_controller.hpp
Expand Up @@ -38,7 +38,7 @@ class playmp_controller : public playsingle_controller, public syncmp_handler

bool is_networked_mp() const override;
void send_to_wesnothd(const config& cfg, const std::string& packet_type = "unknown") const override;
bool recieve_from_wesnothd(config& cfg) const override;
bool receive_from_wesnothd(config& cfg) const override;
protected:
virtual void handle_generic_event(const std::string& name) override;

Expand Down
2 changes: 1 addition & 1 deletion src/playsingle_controller.cpp
Expand Up @@ -72,7 +72,7 @@ playsingle_controller::playsingle_controller(const config& level,
, cursor_setter_(cursor::NORMAL)
, textbox_info_()
, replay_sender_(*resources::recorder)
, network_reader_([this](config& cfg) {return recieve_from_wesnothd(cfg);})
, network_reader_([this](config& cfg) {return receive_from_wesnothd(cfg);})
, turn_data_(replay_sender_, network_reader_)
, end_turn_(END_TURN_NONE)
, skip_next_turn_(false)
Expand Down

0 comments on commit 9148d97

Please sign in to comment.