light: add an assertion for model offsets

This commit is contained in:
Eric Wasylishen 2016-07-29 15:51:26 -06:00
parent 14f0af42be
commit b669767fe0
1 changed files with 4 additions and 0 deletions

View File

@ -418,6 +418,10 @@ FindModelInfo(const bsp2_t *bsp, const char *lmscaleoverride)
/* Set up the offset for rotate_* entities */
if (EntDict_StringForKey(*entdict, "classname").find("rotate_") == 0) {
EntDict_VectorForKey(*entdict, "origin", info.offset);
} else {
assert(info.offset[0] == 0);
assert(info.offset[1] == 0);
assert(info.offset[2] == 0);
}
/* Enable .lit if needed */