We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b50fe5 + bd1cf2d commit 9ca14b6Copy full SHA for 9ca14b6
code/decals/decals.cpp
@@ -244,6 +244,9 @@ struct Decal {
244
if (!object.IsValid()) {
245
return false;
246
}
247
+ if (object.objp->flags[Object::Object_Flags::Should_be_dead]) {
248
+ return false;
249
+ }
250
251
if (orig_obj_type != object.objp->type) {
252
mprintf(("Decal object type for object %d has changed from %s to %s. Please let m!m know about this\n",
@@ -270,6 +273,9 @@ struct Decal {
270
273
if (smi->blown_off) {
271
274
272
275
276
+ } else {
277
+ Assertion(false, "Only ships are currently supported for decals!");
278
279
280
281
return true;
0 commit comments