Browse Source

Fix ttype signing/size

pull/4/head
galaxyhaxz 8 years ago committed by GitHub
parent
commit
dc7a5d1952
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      Source/themes.cpp

10
Source/themes.cpp

@ -599,7 +599,7 @@ void __cdecl InitThemes()
_LOBYTE(v7) = 0;
}
v8 = numthemes;
_LOBYTE(themes[numthemes].ttype) = i;
themes[numthemes].ttype = i;
v1 = leveltype;
v0 = v8 + 1;
numthemes = v0;
@ -612,7 +612,7 @@ void __cdecl InitThemes()
{
v9 = themeCount;
for ( j = 0; j < v9; ++j )
_LOBYTE(themes[j].ttype) = -1;
themes[j].ttype = -1;
//_LOBYTE(v11) = QuestStatus(3);
v13 = &themeLoc[0].ttval;
if ( QuestStatus(3) )
@ -632,7 +632,7 @@ void __cdecl InitThemes()
if ( v14 >= themeCount )
goto LABEL_23;
}
_LOBYTE(themes[v14].ttype) = 5;
themes[v14].ttype = 5;
zharlib = v14;
}
}
@ -640,7 +640,7 @@ LABEL_23:
v17 = themeCount;
for ( k = 0; k < themeCount; v13 += 5 )
{
if ( _LOBYTE(themes[k].ttype) == LOBYTE(-1) ) /* char */
if ( themes[k].ttype == -1 )
{
_LOBYTE(v12) = 0;
themes[k].ttval = *v13;
@ -651,7 +651,7 @@ LABEL_23:
break;
_LOBYTE(v12) = 0;
}
_LOBYTE(themes[k].ttype) = l;
themes[k].ttype = l;
}
v17 = themeCount;
++k;

Loading…
Cancel
Save