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
1 changed files with 1 additions and 0 deletions

View File

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