From fd89aef210b49f523d9075329e0723cd74164e08 Mon Sep 17 00:00:00 2001 From: Edgaru089 Date: Tue, 16 Apr 2024 19:36:02 +0800 Subject: [PATCH] Rename FILL_BOX to just FILL --- map.cpp | 2 +- map_types.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 {