mirror of
https://github.com/isledecomp/isle.git
synced 2026-05-06 06:53:57 +00:00
Update p name
This commit is contained in:
parent
c647470260
commit
13dd965571
@ -25,7 +25,7 @@ void FUN_1003ef00(MxBool);
|
|||||||
void SetAppCursor(WPARAM p_wparam);
|
void SetAppCursor(WPARAM p_wparam);
|
||||||
MxBool FUN_1003ef60();
|
MxBool FUN_1003ef60();
|
||||||
MxBool RemoveFromWorld(MxAtomId& p_entityAtom, MxS32 p_entityId, MxAtomId& p_worldAtom, MxS32 p_worldEntityId);
|
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);
|
void SetLightPosition(MxS32 p_index);
|
||||||
LegoNamedTexture* ReadNamedTexture(LegoFile* p_file);
|
LegoNamedTexture* ReadNamedTexture(LegoFile* p_file);
|
||||||
void FUN_1003f540(LegoFile* p_file, const char* p_filename);
|
void FUN_1003f540(LegoFile* p_file, const char* p_filename);
|
||||||
|
|||||||
@ -342,11 +342,12 @@ MxBool FUN_1003ef60()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1003f050
|
// FUNCTION: LEGO1 0x1003f050
|
||||||
MxS32 UpdateLightPosition(MxS32 p_index)
|
MxS32 UpdateLightPosition(MxS32 p_increase)
|
||||||
{
|
{
|
||||||
MxS32 lightPosition = atoi(VariableTable()->GetVariable("lightposition"));
|
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;
|
lightPosition += 1;
|
||||||
if (lightPosition > 5) {
|
if (lightPosition > 5) {
|
||||||
lightPosition = 5;
|
lightPosition = 5;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user