Fix compile errors

This commit is contained in:
TotallyNotElite 2018-12-24 14:03:44 +01:00
parent 3d4233c739
commit 2ff71cfca5
4 changed files with 4 additions and 8 deletions

View File

@ -430,7 +430,7 @@ void Schema_Reload()
logging::Info("Loading %s", ret ? "Successful" : "Unsuccessful");
}
CatCommand schema("schema", "Load custom schema", Schema_Reload);
*/
CatCommand name("name_set", "Immediate name change", [](const CCommand &args) {
if (args.ArgC() < 2)
{

View File

@ -436,7 +436,7 @@ static void updateSlot()
}
}
static InitRoutine runinit([]() { EC::Register<EC::CreateMove>(CreateMove, "navbot", EC::early); });
static InitRoutine runinit([]() { EC::Register(EC::CreateMove, CreateMove, "navbot", EC::early); });
void change(settings::VariableBase<bool> &, bool)
{

View File

@ -649,9 +649,9 @@ static void drawcrumbs()
#endif
static InitRoutine runinit([]() {
EC::Register<EC::CreateMove>(cm, "cm_navparser", EC::average);
EC::Register(EC::CreateMove, cm, "cm_navparser", EC::average);
#if ENABLE_VISUALS
EC::Register<EC::Draw>(drawcrumbs, "draw_navparser", EC::average);
EC::Register(EC::Draw, drawcrumbs, "draw_navparser", EC::average);
#endif
});

View File

@ -63,10 +63,6 @@ double getRandom(double lower_bound, double upper_bound)
void DrawCheatVisuals()
{
{
PROF_SECTION(DRAW_misc);
hacks::shared::misc::DrawText();
}
{
PROF_SECTION(DRAW_info);
std::string name_s, reason_s;