Add field in TSubModel for storing multiplier value

This commit is contained in:
2026-01-13 09:27:36 +01:00
parent b5d595aca9
commit fdbbb13b66
2 changed files with 3 additions and 2 deletions

View File

@@ -370,11 +370,11 @@ std::pair<int, int> TSubModel::Load(cParser &parser, bool dynamic)
parser >> discard >> multiplier;
WriteLog("Found hotspot power!");
// recaluclate multiplier
multiplier = multiplier / 100.f;
diffuseMultiplier = multiplier / 100.f;
// apply color only on nvrenderer
if (Global.NvRenderer)
f4Diffuse *= multiplier;
f4Diffuse *= diffuseMultiplier;
}
else
parser.autoclear(false);