--- a/rts/Game/WebbarBrowser.h +++ b/rts/Game/WebbarBrowser.h @@ -82,7 +82,7 @@ if (!catalogSent) { catalogSent = true; if (std::getenv("WEBBAR_NETWORK") != nullptr) { static WebbarNetworkResult result; } - MAIN_THREAD_EM_ASM({ if (Module['webbarProtocol']) Module['webbarProtocol'](8, 255 /* restore | shields | cloak | resurrection | native work effects | area resurrection | manual launch | capture */); }); + MAIN_THREAD_EM_ASM({ if (Module['webbarProtocol']) Module['webbarProtocol'](8, 511 /* restore | shields | cloak | resurrection | native work effects | area resurrection | manual launch | capture | smart trajectory */); }); MAIN_THREAD_EM_ASM({ if (Module['webbarIdentity']) Module['webbarIdentity']($0, $1, $2, $3); }, gu->myPlayerNum, gu->myTeam, gu->myAllyTeam, int(gu->spectating)); @@ -237,7 +237,7 @@ } else { command.PushPos(float3(order.x, CGround::GetHeightReal(order.x, order.z), order.z)); } - } else if (order.kind == CMD_FIRE_STATE || order.kind == CMD_MOVE_STATE || order.kind == CMD_REPEAT || order.kind == CMD_ONOFF || order.kind == 37382 /* BAR CMD_WANT_CLOAK */ || order.kind == CMD_TRAJECTORY || order.kind == CMD_AUTOREPAIRLEVEL || order.kind == CMD_IDLEMODE) { + } else if (order.kind == CMD_FIRE_STATE || order.kind == CMD_MOVE_STATE || order.kind == CMD_REPEAT || order.kind == CMD_ONOFF || order.kind == 37382 /* BAR CMD_WANT_CLOAK */ || order.kind == CMD_TRAJECTORY || order.kind == 37384 /* BAR SMART_TOGGLE */ || order.kind == CMD_AUTOREPAIRLEVEL || order.kind == CMD_IDLEMODE) { requireCapability(order.kind); for (int id: ids) { const auto* desc = description(id, order.kind);