A better fix to the cylboard problem

So we've reverted the previous 'fix' and add this one, by @HeavenVolkoff.
This commit is contained in:
V. R. Miguel 2020-05-17 03:34:05 -03:00 committed by GitHub
parent d543bd0b3d
commit bc5942d189
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,6 +196,7 @@ void unload_object(struct Object *obj) {
geo_add_child(&gObjParentGraphNode, &obj->header.gfx.node); geo_add_child(&gObjParentGraphNode, &obj->header.gfx.node);
obj->header.gfx.node.flags &= ~GRAPH_RENDER_BILLBOARD; obj->header.gfx.node.flags &= ~GRAPH_RENDER_BILLBOARD;
obj->header.gfx.node.flags &= ~GRAPH_RENDER_CYLBOARD;
obj->header.gfx.node.flags &= ~GRAPH_RENDER_ACTIVE; obj->header.gfx.node.flags &= ~GRAPH_RENDER_ACTIVE;
deallocate_object(&gFreeObjectList, &obj->header); deallocate_object(&gFreeObjectList, &obj->header);