Code to implement HTTP requests done. Also, rewrote str_to_int64, str_to_double
This commit is contained in:
@@ -47,13 +47,13 @@ private:
|
||||
}
|
||||
|
||||
void do_menu_command(const StringVec &cmd) {
|
||||
int64_t place = util::strtoint(cmd[1], actor_id_);
|
||||
int64_t place = util::str_to_int64(cmd[1], actor_id_);
|
||||
world_->update_gui(actor_id_, place, &gui_);
|
||||
stdostream() << gui_.menu_debug_string();
|
||||
}
|
||||
|
||||
void do_choose_command(const StringVec &cmd) {
|
||||
eng::string action = gui_.get_action(util::strtoint(cmd[1], -1));
|
||||
eng::string action = gui_.get_action(util::str_to_int64(cmd[1]));
|
||||
if (action == "") {
|
||||
stdostream() << "Invalid menu item #" << std::endl;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user