mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-26 01:44:19 +00:00
Match Jetski::HandleClick (#1380)
* Match `Jetski::HandleClick` * Formatting * Clean up, document, add BETA10 references * Fix formatting --------- Co-authored-by: jonschz <jonschz@users.noreply.github.com>
This commit is contained in:
@@ -157,27 +157,30 @@ MxLong DuneBuggy::HandlePathStruct(LegoPathStructNotificationParam& p_param)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10068290
|
||||
// FUNCTION: BETA10 0x1002765d
|
||||
MxS32 DuneBuggy::GetColorOffset(const char* p_variable)
|
||||
{
|
||||
MxS32 offset = 1;
|
||||
const char* colorName = VariableTable()->GetVariable(p_variable);
|
||||
const char* color = VariableTable()->GetVariable(p_variable);
|
||||
assert(color);
|
||||
|
||||
if (strcmpi(colorName, "lego green")) {
|
||||
if (!strcmpi(colorName, "lego red")) {
|
||||
offset = 2;
|
||||
}
|
||||
else if (!strcmpi(colorName, "lego yellow")) {
|
||||
offset = 3;
|
||||
}
|
||||
else if (!strcmpi(colorName, "lego black")) {
|
||||
offset = 4;
|
||||
}
|
||||
else if (!strcmpi(colorName, "lego blue")) {
|
||||
offset = 5;
|
||||
}
|
||||
else if (!strcmpi(colorName, "lego white")) {
|
||||
offset = 6;
|
||||
}
|
||||
if (!strcmpi(color, "lego green")) {
|
||||
offset = 1;
|
||||
}
|
||||
else if (!strcmpi(color, "lego red")) {
|
||||
offset = 2;
|
||||
}
|
||||
else if (!strcmpi(color, "lego yellow")) {
|
||||
offset = 3;
|
||||
}
|
||||
else if (!strcmpi(color, "lego black")) {
|
||||
offset = 4;
|
||||
}
|
||||
else if (!strcmpi(color, "lego blue")) {
|
||||
offset = 5;
|
||||
}
|
||||
else if (!strcmpi(color, "lego white")) {
|
||||
offset = 6;
|
||||
}
|
||||
|
||||
return offset;
|
||||
|
||||
Reference in New Issue
Block a user