Update p name

This commit is contained in:
Christian Semmler 2024-03-29 16:19:01 -04:00
parent c647470260
commit 13dd965571
2 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,7 @@ void FUN_1003ef00(MxBool);
void SetAppCursor(WPARAM p_wparam);
MxBool FUN_1003ef60();
MxBool RemoveFromWorld(MxAtomId& p_entityAtom, MxS32 p_entityId, MxAtomId& p_worldAtom, MxS32 p_worldEntityId);
MxS32 UpdateLightPosition(MxS32 p_index);
MxS32 UpdateLightPosition(MxS32 p_increase);
void SetLightPosition(MxS32 p_index);
LegoNamedTexture* ReadNamedTexture(LegoFile* p_file);
void FUN_1003f540(LegoFile* p_file, const char* p_filename);

View File

@ -342,11 +342,12 @@ MxBool FUN_1003ef60()
}
// FUNCTION: LEGO1 0x1003f050
MxS32 UpdateLightPosition(MxS32 p_index)
MxS32 UpdateLightPosition(MxS32 p_increase)
{
MxS32 lightPosition = atoi(VariableTable()->GetVariable("lightposition"));
if (p_index > 0) {
// Only ever increases by 1 irrespective of p_increase
if (p_increase > 0) {
lightPosition += 1;
if (lightPosition > 5) {
lightPosition = 5;