crlib: use real status codes for http

graph: allow uploading from hlds console.
This commit is contained in:
dmitry 2020-06-16 09:35:29 +03:00 committed by jeefo
commit ee3f9e7538
4 changed files with 81 additions and 27 deletions

View file

@ -270,7 +270,7 @@ int BotControl::cmdNode () {
enum args { root, alias, cmd, cmd2 };
// graph editor supported only with editor
if (game.isDedicated () && !graph.hasEditor () && strValue (cmd) != "acquire_editor") {
if (game.isDedicated () && !graph.hasEditor () && strValue (cmd) != "acquire_editor" && strValue (cmd) != "upload") {
msg ("Unable to use graph edit commands without setting graph editor player. Please use \"graph acquire_editor\" to acquire rights for graph editing.");
return BotCommandResult::Handled;
}