|
|
@ -137,7 +137,7 @@ static inline MaterialDescriptor &get_last_used_material()
|
|
|
|
return last_used_material[ui_build_selector->building_subtype];
|
|
|
|
return last_used_material[ui_build_selector->building_subtype];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void set_last_used_material(MaterialDescriptor &matetial)
|
|
|
|
static void set_last_used_material(const MaterialDescriptor &matetial)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
last_used_material[ui_build_selector->building_subtype] = matetial;
|
|
|
|
last_used_material[ui_build_selector->building_subtype] = matetial;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -150,7 +150,7 @@ static MaterialDescriptor &get_last_moved_material()
|
|
|
|
return last_moved_material[ui_build_selector->building_subtype];
|
|
|
|
return last_moved_material[ui_build_selector->building_subtype];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void set_last_moved_material(MaterialDescriptor &matetial)
|
|
|
|
static void set_last_moved_material(const MaterialDescriptor &matetial)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
last_moved_material[ui_build_selector->building_subtype] = matetial;
|
|
|
|
last_moved_material[ui_build_selector->building_subtype] = matetial;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -402,4 +402,4 @@ DFhackCExport command_result plugin_init ( color_ostream &out, std::vector <Plug
|
|
|
|
//Ignore tracks, DF already returns to track menu
|
|
|
|
//Ignore tracks, DF already returns to track menu
|
|
|
|
|
|
|
|
|
|
|
|
return CR_OK;
|
|
|
|
return CR_OK;
|
|
|
|
}
|
|
|
|
}
|
|
|
|