Rename FILL_BOX to just FILL

This commit is contained in:
Edgaru089 2024-04-16 19:36:02 +08:00
parent 65b1c29199
commit fd89aef210
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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 {