[Objects] Add fix_z column to ground spawns (#3992)

* [Objects] Add is_floating column to objects/ground spawns

# Notes
- Allows ground spawns/objects to float without having `FixZ()` called.

* Remove from object.

* Database version

* Fix

* Change to fix_z
This commit is contained in:
Alex King
2024-02-01 05:42:51 -05:00
committed by GitHub
parent 6297c56db2
commit 71f47dbcef
9 changed files with 368 additions and 232 deletions
+3 -8
View File
@@ -154,13 +154,7 @@ void ObjectManipulation::CommandHandler(Client *c, const Seperator *sep)
const uint32 object_id = (ObjectRepository::GetMaxId(content_db) + 1);
Object *o = new Object(
object_id,
od.object_type,
icon,
od,
nullptr
);
Object* o = new Object(object_id, od.object_type, icon, od);
entity_list.AddObject(o, true);
@@ -1237,7 +1231,8 @@ void ObjectManipulation::CommandHandler(Client *c, const Seperator *sep)
od.object_type = ObjectTypes::StaticLocked;
}
o = new Object(object_id, od.object_type, icon, od, nullptr);
o = new Object(object_id, od.object_type, icon, od);
entity_list.AddObject(o, true);
c->Message(