[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 authored and GitHub committed 2024-02-01 04:42:51 -06:00
1 parent 6297c56db2
commit 71f47dbcef
9 files changed
+368 -232

No files matched your search

+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(