Fix issue with portal not covering orange light decal

This commit is contained in:
James Lambert 2023-11-29 19:49:07 -07:00
parent 888dd96190
commit d64d54a9e7

View file

@ -285,7 +285,7 @@ void toLua(lua_State* L, Material* material) {
if (material->mState.hasRenderMode) {
lua_createtable(L, 0, 0);
switch (material->mState.cycle2RenderMode.GetZMode()) {
switch (material->mState.cycle1RenderMode.GetZMode() | material->mState.cycle2RenderMode.GetZMode()) {
case ZMODE_OPA:
lua_pushstring(L, "ZMODE_OPA");
lua_setfield(L, -2, "zMode");