diff --git a/map.cpp b/map.cpp index 1a1dc91..ba5be4b 100644 --- a/map.cpp +++ b/map.cpp @@ -60,7 +60,7 @@ void ui_map() { e = new LevelTransition(); CMD("CAMERA_FOCUS") e = new CameraFocus(); - CMD("FILL_BOX") + CMD("FILL") e = new FillBox; CMD("CUTOFF") cutoff = strtod(strtok(NULL, " "), NULL); diff --git a/map_types.hpp b/map_types.hpp index 776a4e1..1378803 100644 --- a/map_types.hpp +++ b/map_types.hpp @@ -316,9 +316,9 @@ public: class FillBox: public EntityBase { public: - std::string type() override { return "fill_box"; } + std::string type() override { return "fill"; } std::string to_file() override { - snprintf(buf, sizeof(buf), "FILL_BOX %.0f %.0f %.0f %.0lf %.0lf %.0lf %.0lf\n", color[0] * 255, color[1] * 255, color[2] * 255, box.lefttop.x, box.lefttop.y, box.size.x, box.size.y); + snprintf(buf, sizeof(buf), "FILL %.0f %.0f %.0f %.0lf %.0lf %.0lf %.0lf\n", color[0] * 255, color[1] * 255, color[2] * 255, box.lefttop.x, box.lefttop.y, box.size.x, box.size.y); return buf; } void from_strtok() override {