From b669767fe0dc10d1c1cf974189a2a4cb14ebaca8 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Fri, 29 Jul 2016 15:51:26 -0600 Subject: [PATCH] light: add an assertion for model offsets --- light/light.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/light/light.cc b/light/light.cc index 852dc484..da343e73 100644 --- a/light/light.cc +++ b/light/light.cc @@ -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 */