1
0
Fork 0

Add files via upload

pull/28/head
galaxyhaxz 2018-06-20 05:11:08 -05:00 committed by GitHub
parent 985453f94f
commit b0dc5fe383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
22 changed files with 49 additions and 249 deletions

View File

@ -76,7 +76,6 @@ char *talkname[9] =
"Wirt"
};
//----- (00457A01) --------------------------------------------------------
void __cdecl InitStores()
{
int i; // eax
@ -104,7 +103,6 @@ void __cdecl InitStores()
// 6A8A3C: using guessed type int boylevel;
// 6AA705: using guessed type char stextflag;
//----- (00457A87) --------------------------------------------------------
void __cdecl SetupTownStores()
{
int i; // eax
@ -138,7 +136,6 @@ void __cdecl SetupTownStores()
}
// 679660: using guessed type char gbMaxPlayers;
//----- (00457B42) --------------------------------------------------------
void __cdecl FreeStoreMem()
{
void *v0; // ecx
@ -156,7 +153,6 @@ void __cdecl FreeStoreMem()
mem_free_dbg(v2);
}
//----- (00457B78) --------------------------------------------------------
void __cdecl DrawSTextBack()
{
char *v0; // edi
@ -206,7 +202,6 @@ void __cdecl DrawSTextBack()
*v0 = 0;
}
//----- (00457BD6) --------------------------------------------------------
void __fastcall PrintSString(int x, int y, unsigned char cjustflag, char *str, int col, int val)
{
int v6; // edi
@ -317,7 +312,6 @@ void __fastcall PrintSString(int x, int y, unsigned char cjustflag, char *str, i
// 6A8A28: using guessed type int stextsel;
// 457BD6: using guessed type char valstr[32];
//----- (00457DE2) --------------------------------------------------------
void __fastcall DrawSLine(int y)
{
int v1; // eax
@ -363,7 +357,6 @@ void __fastcall DrawSLine(int y)
}
// 6A09E0: using guessed type char stextsize;
//----- (00457E62) --------------------------------------------------------
void __fastcall DrawSArrows(int a1, int a2)
{
int *v2; // ebp
@ -408,7 +401,6 @@ void __fastcall DrawSArrows(int a1, int a2)
// 6A8A2C: using guessed type char stextscrldbtn;
// 6AA704: using guessed type char stextscrlubtn;
//----- (00457F52) --------------------------------------------------------
void __cdecl DrawSTextHelp()
{
stextsel = -1;
@ -417,7 +409,6 @@ void __cdecl DrawSTextHelp()
// 6A09E0: using guessed type char stextsize;
// 6A8A28: using guessed type int stextsel;
//----- (00457F61) --------------------------------------------------------
void __fastcall ClearSText(int s, int e)
{
int v2; // edx
@ -444,7 +435,6 @@ void __fastcall ClearSText(int s, int e)
}
}
//----- (00457FA6) --------------------------------------------------------
void __fastcall AddSLine(int y)
{
int v1; // ecx
@ -456,19 +446,16 @@ void __fastcall AddSLine(int y)
stext[v1]._sline = 1;
}
//----- (00457FCB) --------------------------------------------------------
void __fastcall AddSTextVal(int y, int val)
{
stext[y]._sval = val;
}
//----- (00457FD8) --------------------------------------------------------
void __fastcall OffsetSTextY(int y, int yo)
{
stext[y]._syoff = yo;
}
//----- (00457FE5) --------------------------------------------------------
void __fastcall AddSText(int x, int y, unsigned char j, char *str, int clr, int sel)
{
int v6; // esi
@ -483,7 +470,6 @@ void __fastcall AddSText(int x, int y, unsigned char j, char *str, int clr, int
stext[v6]._ssel = sel;
}
//----- (00458036) --------------------------------------------------------
void __cdecl StoreAutoPlace()
{
int v0; // edi
@ -684,7 +670,6 @@ LABEL_50:
}
// 48E9A8: using guessed type int AP2x2Tbl[10];
//----- (004582B3) --------------------------------------------------------
void __cdecl S_StartSmith()
{
stextsize = 0;
@ -705,7 +690,6 @@ void __cdecl S_StartSmith()
// 6A09E0: using guessed type char stextsize;
// 6A6BB8: using guessed type int stextscrl;
//----- (0045837D) --------------------------------------------------------
void __fastcall S_ScrollSBuy(int idx)
{
int v1; // esi
@ -747,7 +731,6 @@ void __fastcall S_ScrollSBuy(int idx)
// 6A8A28: using guessed type int stextsel;
// 6AA700: using guessed type int stextdown;
//----- (00458439) --------------------------------------------------------
void __fastcall PrintStoreItem(ItemStruct *x, int l, char iclr)
{
ItemStruct *v3; // esi
@ -839,7 +822,6 @@ void __fastcall PrintStoreItem(ItemStruct *x, int l, char iclr)
}
}
//----- (004586B3) --------------------------------------------------------
void __cdecl S_StartSBuy()
{
int v0; // ST10_4
@ -879,7 +861,6 @@ void __cdecl S_StartSBuy()
// 6A09E4: using guessed type int stextsmax;
// 6A6BB8: using guessed type int stextscrl;
//----- (00458773) --------------------------------------------------------
void __fastcall S_ScrollSPBuy(int idx)
{
int v1; // esi
@ -940,7 +921,6 @@ void __fastcall S_ScrollSPBuy(int idx)
// 6A8A28: using guessed type int stextsel;
// 6AA700: using guessed type int stextdown;
//----- (00458851) --------------------------------------------------------
bool __cdecl S_StartSPBuy()
{
int *v0; // eax
@ -989,7 +969,6 @@ bool __cdecl S_StartSPBuy()
// 6A6BB8: using guessed type int stextscrl;
// 6A8A28: using guessed type int stextsel;
//----- (00458931) --------------------------------------------------------
bool __fastcall SmithSellOk(int i)
{
if ( plr[myplr].InvList[i]._itype != ITYPE_NONE
@ -1002,7 +981,6 @@ bool __fastcall SmithSellOk(int i)
return 0;
}
//----- (00458972) --------------------------------------------------------
void __fastcall S_ScrollSSell(int idx)
{
int v1; // esi
@ -1057,7 +1035,6 @@ void __fastcall S_ScrollSSell(int idx)
// 6A09E4: using guessed type int stextsmax;
// 6AA700: using guessed type int stextdown;
//----- (00458A59) --------------------------------------------------------
void __cdecl S_StartSSell()
{
int i; // eax
@ -1117,7 +1094,6 @@ void __cdecl S_StartSSell()
// 6A09E4: using guessed type int stextsmax;
// 6A6BB8: using guessed type int stextscrl;
//----- (00458C0B) --------------------------------------------------------
bool __fastcall SmithRepairOk(int i)
{
if ( plr[myplr].InvList[i]._itype != ITYPE_NONE
@ -1129,7 +1105,6 @@ bool __fastcall SmithRepairOk(int i)
return 0;
}
//----- (00458C4E) --------------------------------------------------------
void __cdecl S_StartSRepair()
{
int v0; // ebp
@ -1236,7 +1211,6 @@ void __cdecl S_StartSRepair()
// 6A09E4: using guessed type int stextsmax;
// 6A6BB8: using guessed type int stextscrl;
//----- (00458E9A) --------------------------------------------------------
void __fastcall AddStoreHoldRepair(ItemStruct *itm, int i)
{
int v2; // ebx
@ -1266,7 +1240,6 @@ void __fastcall AddStoreHoldRepair(ItemStruct *itm, int i)
}
// 69F10C: using guessed type int storenumh;
//----- (00458F3D) --------------------------------------------------------
void __cdecl S_StartWitch()
{
stextsize = 0;
@ -1285,7 +1258,6 @@ void __cdecl S_StartWitch()
// 6A09E0: using guessed type char stextsize;
// 6A6BB8: using guessed type int stextscrl;
//----- (00458FE3) --------------------------------------------------------
void __fastcall S_ScrollWBuy(int idx)
{
int v1; // esi
@ -1327,7 +1299,6 @@ void __fastcall S_ScrollWBuy(int idx)
// 6A8A28: using guessed type int stextsel;
// 6AA700: using guessed type int stextdown;
//----- (0045909F) --------------------------------------------------------
void __cdecl S_StartWBuy()
{
int v0; // ST10_4
@ -1368,7 +1339,6 @@ void __cdecl S_StartWBuy()
// 6A09E4: using guessed type int stextsmax;
// 6A6BB8: using guessed type int stextscrl;
//----- (00459169) --------------------------------------------------------
bool __fastcall WitchSellOk(int i)
{
bool rv; // al
@ -1392,7 +1362,6 @@ bool __fastcall WitchSellOk(int i)
return rv;
}
//----- (004591C4) --------------------------------------------------------
void __cdecl S_StartWSell()
{
int i; // eax
@ -1469,7 +1438,6 @@ void __cdecl S_StartWSell()
// 6A09E4: using guessed type int stextsmax;
// 6A6BB8: using guessed type int stextscrl;
//----- (00459431) --------------------------------------------------------
bool __fastcall WitchRechargeOk(int i)
{
bool rv; // al
@ -1483,7 +1451,6 @@ bool __fastcall WitchRechargeOk(int i)
return rv;
}
//----- (00459460) --------------------------------------------------------
void __fastcall AddStoreHoldRecharge(ItemStruct itm, int i)
{
int v2; // ebx
@ -1511,7 +1478,6 @@ void __fastcall AddStoreHoldRecharge(ItemStruct itm, int i)
// 69F108: using guessed type int stextup;
// 69F10C: using guessed type int storenumh;
//----- (004594E6) --------------------------------------------------------
void __cdecl S_StartWRecharge()
{
int *v0; // eax
@ -1589,7 +1555,6 @@ void __cdecl S_StartWRecharge()
// 6A09E4: using guessed type int stextsmax;
// 6A6BB8: using guessed type int stextscrl;
//----- (00459693) --------------------------------------------------------
void __cdecl S_StartNoMoney()
{
StartStore((unsigned char)stextshold);
@ -1601,7 +1566,6 @@ void __cdecl S_StartNoMoney()
// 6A09E0: using guessed type char stextsize;
// 6A6BB8: using guessed type int stextscrl;
//----- (004596CD) --------------------------------------------------------
void __cdecl S_StartNoRoom()
{
StartStore((unsigned char)stextshold);
@ -1611,7 +1575,6 @@ void __cdecl S_StartNoRoom()
}
// 6A6BB8: using guessed type int stextscrl;
//----- (00459700) --------------------------------------------------------
void __cdecl S_StartConfirm()
{
BOOL idprint; // esi
@ -1697,7 +1660,6 @@ LABEL_37:
}
// 6A6BB8: using guessed type int stextscrl;
//----- (00459873) --------------------------------------------------------
void __cdecl S_StartBoy()
{
stextsize = 0;
@ -1722,7 +1684,6 @@ void __cdecl S_StartBoy()
// 6A09E0: using guessed type char stextsize;
// 6A6BB8: using guessed type int stextscrl;
//----- (00459930) --------------------------------------------------------
void __cdecl S_StartBBoy()
{
int iclr; // esi
@ -1752,7 +1713,6 @@ void __cdecl S_StartBBoy()
// 6A09E0: using guessed type char stextsize;
// 6A6BB8: using guessed type int stextscrl;
//----- (004599FD) --------------------------------------------------------
void __cdecl S_StartHealer()
{
stextsize = 0;
@ -1771,7 +1731,6 @@ void __cdecl S_StartHealer()
// 6A09E0: using guessed type char stextsize;
// 6A6BB8: using guessed type int stextscrl;
//----- (00459AA5) --------------------------------------------------------
void __fastcall S_ScrollHBuy(int idx)
{
int v1; // esi
@ -1807,7 +1766,6 @@ void __fastcall S_ScrollHBuy(int idx)
// 6A8A28: using guessed type int stextsel;
// 6AA700: using guessed type int stextdown;
//----- (00459B55) --------------------------------------------------------
void __cdecl S_StartHBuy()
{
int v0; // ST10_4
@ -1847,7 +1805,6 @@ void __cdecl S_StartHBuy()
// 6A09E4: using guessed type int stextsmax;
// 6A6BB8: using guessed type int stextscrl;
//----- (00459C15) --------------------------------------------------------
void __cdecl S_StartStory()
{
stextsize = 0;
@ -1862,7 +1819,6 @@ void __cdecl S_StartStory()
// 6A09E0: using guessed type char stextsize;
// 6A6BB8: using guessed type int stextscrl;
//----- (00459C8E) --------------------------------------------------------
bool __fastcall IdItemOk(ItemStruct *i)
{
bool result; // al
@ -1876,7 +1832,6 @@ bool __fastcall IdItemOk(ItemStruct *i)
return result;
}
//----- (00459CA2) --------------------------------------------------------
void __fastcall AddStoreHoldId(ItemStruct itm, int i)
{
qmemcpy(&storehold[storenumh], &itm, sizeof(ItemStruct));
@ -1887,7 +1842,6 @@ void __fastcall AddStoreHoldId(ItemStruct itm, int i)
// 69F108: using guessed type int stextup;
// 69F10C: using guessed type int storenumh;
//----- (00459CE6) --------------------------------------------------------
void __cdecl S_StartSIdentify()
{
ItemStruct itm; // [esp-170h] [ebp-18Ch]
@ -1982,7 +1936,6 @@ void __cdecl S_StartSIdentify()
// 6A09E4: using guessed type int stextsmax;
// 6A6BB8: using guessed type int stextscrl;
//----- (00459F95) --------------------------------------------------------
void __cdecl S_StartIdShow()
{
char iclr; // [esp+4h] [ebp-4h]
@ -2004,7 +1957,6 @@ void __cdecl S_StartIdShow()
}
// 6A6BB8: using guessed type int stextscrl;
//----- (0045A046) --------------------------------------------------------
void __cdecl S_StartTalk()
{
int *v0; // edi
@ -2069,7 +2021,6 @@ void __cdecl S_StartTalk()
// 6A09E0: using guessed type char stextsize;
// 6A6BB8: using guessed type int stextscrl;
//----- (0045A168) --------------------------------------------------------
void __cdecl S_StartTavern()
{
stextsize = 0;
@ -2086,7 +2037,6 @@ void __cdecl S_StartTavern()
// 6A09E0: using guessed type char stextsize;
// 6A6BB8: using guessed type int stextscrl;
//----- (0045A1EC) --------------------------------------------------------
void __cdecl S_StartBarMaid()
{
stextsize = 0;
@ -2102,7 +2052,6 @@ void __cdecl S_StartBarMaid()
// 6A09E0: using guessed type char stextsize;
// 6A6BB8: using guessed type int stextscrl;
//----- (0045A25E) --------------------------------------------------------
void __cdecl S_StartDrunk()
{
stextsize = 0;
@ -2118,7 +2067,6 @@ void __cdecl S_StartDrunk()
// 6A09E0: using guessed type char stextsize;
// 6A6BB8: using guessed type int stextscrl;
//----- (0045A2D0) --------------------------------------------------------
void __fastcall StartStore(char s)
{
char t; // bl
@ -2231,7 +2179,6 @@ void __fastcall StartStore(char s)
// 6A8A28: using guessed type int stextsel;
// 6AA705: using guessed type char stextflag;
//----- (0045A48F) --------------------------------------------------------
void __cdecl DrawSText()
{
int i; // edi
@ -2296,7 +2243,6 @@ LABEL_19:
// 6A6BB8: using guessed type int stextscrl;
// 6AA705: using guessed type char stextflag;
//----- (0045A584) --------------------------------------------------------
void __cdecl STextESC()
{
char v0; // cl
@ -2387,7 +2333,6 @@ LABEL_18:
// 6A8A28: using guessed type int stextsel;
// 6AA705: using guessed type char stextflag;
//----- (0045A6AF) --------------------------------------------------------
void __cdecl STextUp()
{
int v0; // eax
@ -2442,7 +2387,6 @@ LABEL_20:
// 6A6BB8: using guessed type int stextscrl;
// 6A8A28: using guessed type int stextsel;
//----- (0045A757) --------------------------------------------------------
void __cdecl STextDown()
{
int v0; // eax
@ -2498,7 +2442,6 @@ LABEL_20:
// 6A8A28: using guessed type int stextsel;
// 6AA700: using guessed type int stextdown;
//----- (0045A804) --------------------------------------------------------
void __cdecl STextPrior()
{
PlaySFX(IS_TITLEMOV);
@ -2523,7 +2466,6 @@ void __cdecl STextPrior()
// 6A6BB8: using guessed type int stextscrl;
// 6A8A28: using guessed type int stextsel;
//----- (0045A84E) --------------------------------------------------------
void __cdecl STextNext()
{
PlaySFX(IS_TITLEMOV);
@ -2547,7 +2489,6 @@ void __cdecl STextNext()
// 6A8A28: using guessed type int stextsel;
// 6AA700: using guessed type int stextdown;
//----- (0045A89B) --------------------------------------------------------
void __cdecl S_SmithEnter()
{
int v0; // ecx
@ -2591,7 +2532,6 @@ LABEL_13:
// 6A8A30: using guessed type int gossipend;
// 6AA705: using guessed type char stextflag;
//----- (0045A904) --------------------------------------------------------
void __fastcall SetGoldCurs(int pnum, int i)
{
if ( plr[pnum].InvList[i]._ivalue < 2500 )
@ -2607,7 +2547,6 @@ void __fastcall SetGoldCurs(int pnum, int i)
}
}
//----- (0045A94A) --------------------------------------------------------
void __fastcall SetSpdbarGoldCurs(int pnum, int i)
{
if ( plr[pnum].SpdList[i]._ivalue < 2500 )
@ -2623,7 +2562,6 @@ void __fastcall SetSpdbarGoldCurs(int pnum, int i)
}
}
//----- (0045A990) --------------------------------------------------------
void __fastcall TakePlrsMoney(int cost)
{
int v1; // edi
@ -2792,7 +2730,6 @@ LABEL_26:
}
// 52571C: using guessed type int drawpanflag;
//----- (0045AB69) --------------------------------------------------------
void __cdecl SmithBuyItem()
{
int idx; // eax
@ -2832,7 +2769,6 @@ void __cdecl SmithBuyItem()
// 69F110: using guessed type int stextlhold;
// 6A8A24: using guessed type int stextvhold;
//----- (0045AC14) --------------------------------------------------------
void __cdecl S_SBuyEnter()
{
int v0; // eax
@ -2889,7 +2825,6 @@ LABEL_11:
// 6A8A24: using guessed type int stextvhold;
// 6A8A28: using guessed type int stextsel;
//----- (0045ACE9) --------------------------------------------------------
void __cdecl SmithBuyPItem()
{
int xx; // ecx
@ -2929,7 +2864,6 @@ void __cdecl SmithBuyPItem()
// 69F110: using guessed type int stextlhold;
// 6A8A24: using guessed type int stextvhold;
//----- (0045AD7E) --------------------------------------------------------
void __cdecl S_SPBuyEnter()
{
int v0; // eax
@ -3012,7 +2946,6 @@ LABEL_16:
// 6A8A24: using guessed type int stextvhold;
// 6A8A28: using guessed type int stextsel;
//----- (0045AE72) --------------------------------------------------------
bool __fastcall StoreGoldFit(int idx)
{
int cost; // edi
@ -3057,7 +2990,6 @@ bool __fastcall StoreGoldFit(int idx)
}
// 4B8C9C: using guessed type int cursH;
//----- (0045AF48) --------------------------------------------------------
void __fastcall PlaceStoreGold(int v)
{
bool done; // ecx
@ -3088,7 +3020,6 @@ void __fastcall PlaceStoreGold(int v)
}
}
//----- (0045B010) --------------------------------------------------------
void __cdecl StoreSellItem()
{
int idx; // ebx
@ -3175,7 +3106,6 @@ LABEL_15:
// 69F110: using guessed type int stextlhold;
// 6A8A24: using guessed type int stextvhold;
//----- (0045B160) --------------------------------------------------------
void __cdecl S_SSellEnter()
{
int idx; // eax
@ -3205,7 +3135,6 @@ void __cdecl S_SSellEnter()
// 6A8A24: using guessed type int stextvhold;
// 6A8A28: using guessed type int stextsel;
//----- (0045B1DF) --------------------------------------------------------
void __cdecl SmithRepairItem()
{
int i; // edx
@ -3237,7 +3166,6 @@ void __cdecl SmithRepairItem()
// 69F110: using guessed type int stextlhold;
// 6A8A24: using guessed type int stextvhold;
//----- (0045B2B6) --------------------------------------------------------
void __cdecl S_SRepairEnter()
{
int idx; // eax
@ -3274,7 +3202,6 @@ void __cdecl S_SRepairEnter()
// 6A8A24: using guessed type int stextvhold;
// 6A8A28: using guessed type int stextsel;
//----- (0045B337) --------------------------------------------------------
void __cdecl S_WitchEnter()
{
int v0; // ecx
@ -3316,7 +3243,6 @@ LABEL_12:
// 6A8A30: using guessed type int gossipend;
// 6AA705: using guessed type char stextflag;
//----- (0045B39F) --------------------------------------------------------
void __cdecl WitchBuyItem()
{
int idx; // ebx
@ -3360,7 +3286,6 @@ void __cdecl WitchBuyItem()
// 69F110: using guessed type int stextlhold;
// 6A8A24: using guessed type int stextvhold;
//----- (0045B457) --------------------------------------------------------
void __cdecl S_WBuyEnter()
{
int idx; // ecx
@ -3411,7 +3336,6 @@ void __cdecl S_WBuyEnter()
// 6A8A24: using guessed type int stextvhold;
// 6A8A28: using guessed type int stextsel;
//----- (0045B52C) --------------------------------------------------------
void __cdecl S_WSellEnter()
{
int idx; // eax
@ -3440,7 +3364,6 @@ void __cdecl S_WSellEnter()
// 6A8A24: using guessed type int stextvhold;
// 6A8A28: using guessed type int stextsel;
//----- (0045B5AB) --------------------------------------------------------
void __cdecl WitchRechargeItem()
{
int i; // ecx
@ -3463,7 +3386,6 @@ void __cdecl WitchRechargeItem()
// 69F110: using guessed type int stextlhold;
// 6A8A24: using guessed type int stextvhold;
//----- (0045B634) --------------------------------------------------------
void __cdecl S_WRechargeEnter()
{
int idx; // eax
@ -3500,7 +3422,6 @@ void __cdecl S_WRechargeEnter()
// 6A8A24: using guessed type int stextvhold;
// 6A8A28: using guessed type int stextsel;
//----- (0045B6B5) --------------------------------------------------------
void __cdecl S_BoyEnter()
{
signed int v0; // ecx
@ -3545,7 +3466,6 @@ LABEL_5:
// 6A8A30: using guessed type int gossipend;
// 6AA705: using guessed type char stextflag;
//----- (0045B757) --------------------------------------------------------
void __cdecl BoyBuyItem()
{
TakePlrsMoney(plr[myplr].HoldItem._iIvalue);
@ -3555,7 +3475,6 @@ void __cdecl BoyBuyItem()
CalcPlrInv(myplr, 1u);
}
//----- (0045B791) --------------------------------------------------------
void __cdecl HealerBuyItem()
{
int idx; // esi
@ -3637,7 +3556,6 @@ void __cdecl HealerBuyItem()
// 69F110: using guessed type int stextlhold;
// 6A8A24: using guessed type int stextvhold;
//----- (0045B895) --------------------------------------------------------
void __cdecl S_BBuyEnter()
{
int v0; // ecx
@ -3695,7 +3613,6 @@ LABEL_10:
// 6A8A28: using guessed type int stextsel;
// 6AA705: using guessed type char stextflag;
//----- (0045B968) --------------------------------------------------------
void __cdecl StoryIdItem()
{
int v0; // ecx
@ -3734,7 +3651,6 @@ void __cdecl StoryIdItem()
// 69F110: using guessed type int stextlhold;
// 6A8A24: using guessed type int stextvhold;
//----- (0045BA57) --------------------------------------------------------
void __cdecl S_ConfirmEnter()
{
char v0; // cl
@ -3797,7 +3713,6 @@ LABEL_27:
// 6A8A24: using guessed type int stextvhold;
// 6A8A28: using guessed type int stextsel;
//----- (0045BAF7) --------------------------------------------------------
void __cdecl S_HealerEnter()
{
int v0; // ecx
@ -3841,7 +3756,6 @@ LABEL_12:
// 6A8A30: using guessed type int gossipend;
// 6AA705: using guessed type char stextflag;
//----- (0045BB9F) --------------------------------------------------------
void __cdecl S_HBuyEnter()
{
int v0; // eax
@ -3898,7 +3812,6 @@ LABEL_11:
// 6A8A24: using guessed type int stextvhold;
// 6A8A28: using guessed type int stextsel;
//----- (0045BC74) --------------------------------------------------------
void __cdecl S_StoryEnter()
{
int v0; // ecx
@ -3931,7 +3844,6 @@ LABEL_8:
// 6A8A30: using guessed type int gossipend;
// 6AA705: using guessed type char stextflag;
//----- (0045BCCA) --------------------------------------------------------
void __cdecl S_SIDEnter()
{
int idx; // eax
@ -3968,7 +3880,6 @@ void __cdecl S_SIDEnter()
// 6A8A24: using guessed type int stextvhold;
// 6A8A28: using guessed type int stextsel;
//----- (0045BD4B) --------------------------------------------------------
void __cdecl S_TalkEnter()
{
int v0; // edx
@ -4054,7 +3965,6 @@ void __cdecl S_TalkEnter()
// 6A8A28: using guessed type int stextsel;
// 6A8A30: using guessed type int gossipend;
//----- (0045BE4A) --------------------------------------------------------
void __cdecl S_TavernEnter()
{
int v0; // ecx
@ -4082,7 +3992,6 @@ void __cdecl S_TavernEnter()
// 6A8A30: using guessed type int gossipend;
// 6AA705: using guessed type char stextflag;
//----- (0045BE98) --------------------------------------------------------
void __cdecl S_BarmaidEnter()
{
int v0; // ecx
@ -4110,7 +4019,6 @@ void __cdecl S_BarmaidEnter()
// 6A8A30: using guessed type int gossipend;
// 6AA705: using guessed type char stextflag;
//----- (0045BEE6) --------------------------------------------------------
void __cdecl S_DrunkEnter()
{
int v0; // ecx
@ -4138,7 +4046,6 @@ void __cdecl S_DrunkEnter()
// 6A8A30: using guessed type int gossipend;
// 6AA705: using guessed type char stextflag;
//----- (0045BF34) --------------------------------------------------------
void __cdecl STextEnter()
{
if ( qtextflag )
@ -4233,7 +4140,6 @@ void __cdecl STextEnter()
// 6A8A28: using guessed type int stextsel;
// 6AA705: using guessed type char stextflag;
//----- (0045C053) --------------------------------------------------------
void __cdecl CheckStoreBtn()
{
bool v0; // sf
@ -4326,7 +4232,6 @@ void __cdecl CheckStoreBtn()
// 6A8A2C: using guessed type char stextscrldbtn;
// 6AA704: using guessed type char stextscrlubtn;
//----- (0045C18A) --------------------------------------------------------
void __cdecl ReleaseStoreBtn()
{
stextscrlubtn = -1;

View File

@ -1,6 +1,7 @@
//HEADER_GOES_HERE
#ifndef __STORES_H__
#define __STORES_H__
//stores
extern int stextup; // weak
extern int storenumh; // weak
extern int stextlhold; // weak
@ -135,3 +136,5 @@ void __cdecl ReleaseStoreBtn();
extern int SStringY[24];
extern char *talkname[9];
#endif /* __STORES_H__ */

View File

@ -8,7 +8,6 @@ short sync_word_6AA89C[200];
int dword_6AAA2C[2];
int sgnSyncPInv; // weak
//----- (0045C199) --------------------------------------------------------
int __fastcall sync_all_monsters(TSyncHeader *packet, int size)
{
int result; // eax
@ -47,7 +46,6 @@ int __fastcall sync_all_monsters(TSyncHeader *packet, int size)
return result;
}
//----- (0045C21E) --------------------------------------------------------
void __cdecl sync_one_monster()
{
int i; // ebx
@ -81,7 +79,6 @@ void __cdecl sync_one_monster()
}
}
//----- (0045C2C4) --------------------------------------------------------
int __fastcall sync_monster_active(TSyncMonster *packet)
{
unsigned int v1; // ebx
@ -111,7 +108,6 @@ int __fastcall sync_monster_active(TSyncMonster *packet)
return 1;
}
//----- (0045C317) --------------------------------------------------------
int __fastcall sync_monster_pos(TSyncMonster *packet, int mon_id)
{
int v2; // ebx
@ -139,7 +135,6 @@ int __fastcall sync_monster_pos(TSyncMonster *packet, int mon_id)
return result * 2;
}
//----- (0045C386) --------------------------------------------------------
int __fastcall sync_monster_active2(TSyncMonster *packet)
{
int v1; // edx
@ -176,7 +171,6 @@ int __fastcall sync_monster_active2(TSyncMonster *packet)
}
// 6AA898: using guessed type int dword_6AA898;
//----- (0045C3E6) --------------------------------------------------------
char __fastcall SyncPlrInv(TSyncHeader *pItem)
{
int v1; // edx
@ -251,7 +245,6 @@ char __fastcall SyncPlrInv(TSyncHeader *pItem)
}
// 6AAA34: using guessed type int sgnSyncPInv;
//----- (0045C5C7) --------------------------------------------------------
int __fastcall SyncData(int pnum, TSyncHeader *packet)
{
TSyncHeader *v2; // esi
@ -286,7 +279,6 @@ int __fastcall SyncData(int pnum, TSyncHeader *packet)
}
// 676194: using guessed type char gbBufferMsgs;
//----- (0045C63B) --------------------------------------------------------
void __fastcall sync_monster_data(int pnum, TSyncMonster *packet)
{
TSyncMonster *v2; // edi
@ -385,7 +377,6 @@ LABEL_23:
}
}
//----- (0045C84B) --------------------------------------------------------
void __cdecl sync_clear_pkt()
{
dword_6AA898 = 16 * myplr;

View File

@ -1,6 +1,7 @@
//HEADER_GOES_HERE
#ifndef __SYNC_H__
#define __SYNC_H__
//sync
extern short sync_word_6AA708[200];
extern int dword_6AA898; // weak
extern short sync_word_6AA89C[200];
@ -16,3 +17,5 @@ char __fastcall SyncPlrInv(TSyncHeader *pItem);
int __fastcall SyncData(int pnum, TSyncHeader *packet);
void __fastcall sync_monster_data(int pnum, TSyncMonster *packet);
void __cdecl sync_clear_pkt();
#endif /* __SYNC_H__ */

View File

@ -2,6 +2,8 @@
#include "../types.h"
/* todo: move text out of struct */
TextDataStruct alltext[259] =
{
{ " Ahh, the story of our King, is it? The tragic fall of Leoric was a harsh blow to this land. The people always loved the King, and now they live in mortal fear of him. The question that I keep asking myself is how he could have fallen so far from the Light, as Leoric had always been the holiest of men. Only the vilest powers of Hell could so utterly destroy a man from within... |",

View File

@ -1,4 +1,8 @@
//HEADER_GOES_HERE
#ifndef __TEXTDAT_H__
#define __TEXTDAT_H__
extern TextDataStruct alltext[259];
extern int gdwAllTextEntries;
#endif /* __TEXTDAT_H__ */

View File

@ -53,7 +53,6 @@ int trm3y[9] =
1, 1, 1
};
//----- (0045C870) --------------------------------------------------------
bool __fastcall TFit_Shrine(int i)
{
int v1; // ecx
@ -114,7 +113,6 @@ LABEL_21:
return 1;
}
//----- (0045C993) --------------------------------------------------------
bool __fastcall TFit_Obj5(int t)
{
int v2; // ebx
@ -181,7 +179,6 @@ LABEL_18:
}
}
//----- (0045CA72) --------------------------------------------------------
bool __fastcall TFit_SkelRoom(int t)
{
int i; // esi
@ -203,7 +200,6 @@ bool __fastcall TFit_SkelRoom(int t)
}
// 5BB1ED: using guessed type char leveltype;
//----- (0045CAC4) --------------------------------------------------------
bool __fastcall TFit_GoatShrine(int t)
{
int i; // esi
@ -222,7 +218,6 @@ bool __fastcall TFit_GoatShrine(int t)
return TFit_Obj5(t);
}
//----- (0045CB09) --------------------------------------------------------
bool __fastcall CheckThemeObj3(int xp, int yp, int t, int f)
{
int i; // edi
@ -252,7 +247,6 @@ bool __fastcall CheckThemeObj3(int xp, int yp, int t, int f)
return 0;
}
//----- (0045CB88) --------------------------------------------------------
bool __fastcall TFit_Obj3(int t)
{
int yp; // edi
@ -286,7 +280,6 @@ bool __fastcall TFit_Obj3(int t)
}
// 5BB1ED: using guessed type char leveltype;
//----- (0045CBE4) --------------------------------------------------------
bool __fastcall CheckThemeReqs(int t)
{
bool rv; // al
@ -375,7 +368,6 @@ LABEL_16:
// 6AAC08: using guessed type int pFountainFlag;
// 6AAC0C: using guessed type int bFountainFlag;
//----- (0045CC64) --------------------------------------------------------
bool __fastcall SpecialThemeFit(int i, int t)
{
bool rv; // eax
@ -461,7 +453,6 @@ bool __fastcall SpecialThemeFit(int i, int t)
// 6AAC08: using guessed type int pFountainFlag;
// 6AAC0C: using guessed type int bFountainFlag;
//----- (0045CD9A) --------------------------------------------------------
bool __fastcall CheckThemeRoom(int tv)
{
int v1; // esi
@ -545,7 +536,6 @@ LABEL_16:
}
// 5BB1ED: using guessed type char leveltype;
//----- (0045CED2) --------------------------------------------------------
void __cdecl InitThemes()
{
int v0; // esi
@ -682,7 +672,6 @@ LABEL_23:
// 6AAC0C: using guessed type int bFountainFlag;
// 6AAC10: using guessed type int bCrossFlag;
//----- (0045D087) --------------------------------------------------------
void __cdecl HoldThemeRooms()
{
int v0; // ebx
@ -726,7 +715,6 @@ void __cdecl HoldThemeRooms()
}
// 5BB1ED: using guessed type char leveltype;
//----- (0045D0E1) --------------------------------------------------------
void __fastcall PlaceThemeMonsts(int t, int f)
{
int numscattypes; // edx
@ -763,7 +751,6 @@ void __fastcall PlaceThemeMonsts(int t, int f)
}
// 45D0E1: using guessed type int var_1D0[111];
//----- (0045D1C2) --------------------------------------------------------
void __fastcall Theme_Barrel(int t)
{
int yp; // edi
@ -800,7 +787,6 @@ void __fastcall Theme_Barrel(int t)
}
// 5BB1ED: using guessed type char leveltype;
//----- (0045D29A) --------------------------------------------------------
void __fastcall Theme_Shrine(int t)
{
char monstrnd[5]; // [esp+3h] [ebp-5h]
@ -826,7 +812,6 @@ void __fastcall Theme_Shrine(int t)
}
// 5BB1ED: using guessed type char leveltype;
//----- (0045D34D) --------------------------------------------------------
void __fastcall Theme_MonstPit(int t)
{
int r; // eax
@ -863,7 +848,6 @@ void __fastcall Theme_MonstPit(int t)
}
// 5BB1ED: using guessed type char leveltype;
//----- (0045D3E6) --------------------------------------------------------
void __fastcall Theme_SkelRoom(int t)
{
int yp; // esi
@ -920,7 +904,6 @@ void __fastcall Theme_SkelRoom(int t)
}
// 5BB1ED: using guessed type char leveltype;
//----- (0045D5BC) --------------------------------------------------------
void __fastcall Theme_Treasure(int t)
{
int yp; // esi
@ -964,7 +947,6 @@ void __fastcall Theme_Treasure(int t)
}
// 5BB1ED: using guessed type char leveltype;
//----- (0045D707) --------------------------------------------------------
void __fastcall Theme_Library(int t)
{
int v1; // edi
@ -1047,7 +1029,6 @@ void __fastcall Theme_Library(int t)
// 5BB1ED: using guessed type char leveltype;
// 6AAA64: using guessed type int zharlib;
//----- (0045D88A) --------------------------------------------------------
void __fastcall Theme_Torture(int t)
{
int v1; // ebx
@ -1102,7 +1083,6 @@ void __fastcall Theme_Torture(int t)
}
// 5BB1ED: using guessed type char leveltype;
//----- (0045D95D) --------------------------------------------------------
void __fastcall Theme_BloodFountain(int t)
{
char monstrnd[5]; // [esp+3h] [ebp-5h]
@ -1117,7 +1097,6 @@ void __fastcall Theme_BloodFountain(int t)
}
// 5BB1ED: using guessed type char leveltype;
//----- (0045D9A3) --------------------------------------------------------
void __fastcall Theme_Decap(int t)
{
int v1; // ebx
@ -1172,7 +1151,6 @@ void __fastcall Theme_Decap(int t)
}
// 5BB1ED: using guessed type char leveltype;
//----- (0045DA76) --------------------------------------------------------
void __fastcall Theme_PurifyingFountain(int t)
{
char monstrnd[5]; // [esp+3h] [ebp-5h]
@ -1187,7 +1165,6 @@ void __fastcall Theme_PurifyingFountain(int t)
}
// 5BB1ED: using guessed type char leveltype;
//----- (0045DABC) --------------------------------------------------------
void __fastcall Theme_ArmorStand(int t)
{
int v1; // esi
@ -1249,7 +1226,6 @@ void __fastcall Theme_ArmorStand(int t)
// 5BB1ED: using guessed type char leveltype;
// 6AAA3C: using guessed type int armorFlag;
//----- (0045DBAD) --------------------------------------------------------
void __fastcall Theme_GoatShrine(int t)
{
int v1; // edx
@ -1295,7 +1271,6 @@ void __fastcall Theme_GoatShrine(int t)
}
}
//----- (0045DC7B) --------------------------------------------------------
void __fastcall Theme_Cauldron(int t)
{
char monstrnd[5]; // [esp+3h] [ebp-5h]
@ -1310,7 +1285,6 @@ void __fastcall Theme_Cauldron(int t)
}
// 5BB1ED: using guessed type char leveltype;
//----- (0045DCC1) --------------------------------------------------------
void __fastcall Theme_MurkyFountain(int t)
{
char monstrnd[5]; // [esp+3h] [ebp-5h]
@ -1325,7 +1299,6 @@ void __fastcall Theme_MurkyFountain(int t)
}
// 5BB1ED: using guessed type char leveltype;
//----- (0045DD07) --------------------------------------------------------
void __fastcall Theme_TearFountain(int t)
{
char monstrnd[5]; // [esp+3h] [ebp-5h]
@ -1340,7 +1313,6 @@ void __fastcall Theme_TearFountain(int t)
}
// 5BB1ED: using guessed type char leveltype;
//----- (0045DD4D) --------------------------------------------------------
void __fastcall Theme_BrnCross(int t)
{
int v1; // esi
@ -1397,7 +1369,6 @@ void __fastcall Theme_BrnCross(int t)
// 5BB1ED: using guessed type char leveltype;
// 6AAC10: using guessed type int bCrossFlag;
//----- (0045DE20) --------------------------------------------------------
void __fastcall Theme_WeaponRack(int t)
{
int v1; // esi
@ -1459,7 +1430,6 @@ void __fastcall Theme_WeaponRack(int t)
// 5BB1ED: using guessed type char leveltype;
// 6AAA50: using guessed type int weaponFlag;
//----- (0045DF11) --------------------------------------------------------
void __cdecl UpdateL4Trans()
{
int i; // ecx
@ -1475,7 +1445,6 @@ void __cdecl UpdateL4Trans()
}
}
//----- (0045DF31) --------------------------------------------------------
void __cdecl CreateThemeRooms()
{
int i; // esi

View File

@ -1,6 +1,7 @@
//HEADER_GOES_HERE
#ifndef __THEMES_H__
#define __THEMES_H__
//themes
extern int numthemes; // idb
extern bool armorFlag; // weak
extern int ThemeGoodIn[4];
@ -57,3 +58,5 @@ extern int trm5x[25];
extern int trm5y[25];
extern int trm3x[9];
extern int trm3y[9];
#endif /* __THEMES_H__ */

View File

@ -4,7 +4,6 @@
TMsg *sgpTimedMsgHead;
//----- (0045E08C) --------------------------------------------------------
int __fastcall tmsg_get(unsigned char *pbMsg, char bLen)
{
unsigned char *v2; // ebx
@ -26,7 +25,6 @@ int __fastcall tmsg_get(unsigned char *pbMsg, char bLen)
return dwMaxLen;
}
//----- (0045E0D7) --------------------------------------------------------
void __fastcall tmsg_add(unsigned char *pbMsg, char bLen)
{
char v2; // bl
@ -56,7 +54,6 @@ void __fastcall tmsg_add(unsigned char *pbMsg, char bLen)
*v9 = v6;
}
//----- (0045E12A) --------------------------------------------------------
void __cdecl tmsg_cleanup()
{
TMsg *v0; // eax

View File

@ -1,8 +1,11 @@
//HEADER_GOES_HERE
#ifndef __TMSG_H__
#define __TMSG_H__
//tmsg
extern TMsg *sgpTimedMsgHead;
int __fastcall tmsg_get(unsigned char *pbMsg, char bLen);
void __fastcall tmsg_add(unsigned char *pbMsg, char bLen);
void __cdecl tmsg_cleanup();
#endif /* __TMSG_H__ */

View File

@ -2,7 +2,6 @@
#include "../types.h"
//----- (0045E151) --------------------------------------------------------
void __fastcall town_clear_upper_buf(int a1)
{
unsigned int v1; // edi
@ -43,7 +42,6 @@ void __fastcall town_clear_upper_buf(int a1)
}
// 69CF0C: using guessed type int screen_buf_end;
//----- (0045E1B7) --------------------------------------------------------
void __fastcall town_clear_low_buf(int y_related)
{
unsigned int v1; // edi
@ -97,7 +95,6 @@ void __fastcall town_clear_low_buf(int y_related)
}
// 69CF0C: using guessed type int screen_buf_end;
//----- (0045E226) --------------------------------------------------------
void __fastcall town_draw_clipped_e_flag(void *buffer, int x, int y, int sx, int sy)
{
int v5; // ebx
@ -131,7 +128,6 @@ void __fastcall town_draw_clipped_e_flag(void *buffer, int x, int y, int sx, int
}
// 69CF14: using guessed type int level_cel_block;
//----- (0045E2A5) --------------------------------------------------------
void __fastcall town_draw_clipped_town(void *unused, int x, int y, int sx, int sy, int some_flag)
{
unsigned int v6; // edx
@ -251,7 +247,6 @@ void __fastcall town_draw_clipped_town(void *unused, int x, int y, int sx, int s
// 4B8CC0: using guessed type char pcursitem;
// 4B8CC2: using guessed type char pcursplr;
//----- (0045E5B0) --------------------------------------------------------
void __fastcall town_draw_lower(int x, int y, int sx, int sy, int a5, int some_flag)
{
int v6; // ebx
@ -390,7 +385,6 @@ void __fastcall town_draw_lower(int x, int y, int sx, int sy, int a5, int some_f
}
// 69CF14: using guessed type int level_cel_block;
//----- (0045E898) --------------------------------------------------------
void __fastcall town_draw_clipped_e_flag_2(void *buffer, int x, int y, int a4, int a5, int sx, int sy)
{
int v7; // ebx
@ -434,7 +428,6 @@ void __fastcall town_draw_clipped_e_flag_2(void *buffer, int x, int y, int a4, i
}
// 69CF14: using guessed type int level_cel_block;
//----- (0045E939) --------------------------------------------------------
void __fastcall town_draw_clipped_town_2(int x, int y, int a3, int a4, int a5, int sx, int sy, int some_flag)
{
unsigned int v8; // edx
@ -554,7 +547,6 @@ void __fastcall town_draw_clipped_town_2(int x, int y, int a3, int a4, int a5, i
// 4B8CC0: using guessed type char pcursitem;
// 4B8CC2: using guessed type char pcursplr;
//----- (0045EC49) --------------------------------------------------------
void __fastcall town_draw_lower_2(int x, int y, int sx, int sy, int a5, int a6, int some_flag)
{
int v7; // esi
@ -719,7 +711,6 @@ LABEL_18:
}
// 69CF14: using guessed type int level_cel_block;
//----- (0045EF8A) --------------------------------------------------------
void __fastcall town_draw_e_flag(void *buffer, int x, int y, int a4, int dir, int sx, int sy)
{
int v7; // ebx
@ -756,7 +747,6 @@ void __fastcall town_draw_e_flag(void *buffer, int x, int y, int a4, int dir, in
}
// 69CF14: using guessed type int level_cel_block;
//----- (0045F013) --------------------------------------------------------
void __fastcall town_draw_town_all(void *buffer, int x, int y, int a4, int dir, int sx, int sy, int some_flag)
{
//int v9; // ebx
@ -819,7 +809,6 @@ void __fastcall town_draw_town_all(void *buffer, int x, int y, int a4, int dir,
// 4B8CC0: using guessed type char pcursitem;
// 4B8CC2: using guessed type char pcursplr;
//----- (0045F323) --------------------------------------------------------
void __fastcall town_draw_upper(int x, int y, int sx, int sy, int a5, int a6, int some_flag)
{
signed int v7; // ebx
@ -1002,7 +991,6 @@ LABEL_36:
}
// 69CF14: using guessed type int level_cel_block;
//----- (0045F65D) --------------------------------------------------------
void __fastcall T_DrawGame(int x, int y)
{
int v2; // esi
@ -1135,7 +1123,6 @@ LABEL_15:
// 69BD04: using guessed type int questlog;
// 69CF0C: using guessed type int screen_buf_end;
//----- (0045F856) --------------------------------------------------------
void __fastcall T_DrawZoom(int x, int y)
{
int v2; // edi
@ -1306,7 +1293,6 @@ LABEL_24:
// 69BD04: using guessed type int questlog;
// 69CF0C: using guessed type int screen_buf_end;
//----- (0045FAAB) --------------------------------------------------------
void __fastcall T_DrawView(int StartX, int StartY)
{
light_table_index = 0;
@ -1373,7 +1359,6 @@ void __fastcall T_DrawView(int StartX, int StartY)
// 69CF94: using guessed type int cel_transparency_active;
// 6AA705: using guessed type char stextflag;
//----- (0045FBD7) --------------------------------------------------------
void __cdecl town_init_dpiece_defs_map()
{
int (*v0)[112]; // ebx
@ -1439,7 +1424,6 @@ void __cdecl town_init_dpiece_defs_map()
// 5C3000: using guessed type int scr_pix_width;
// 5C3004: using guessed type int scr_pix_height;
//----- (0045FCBF) --------------------------------------------------------
void __fastcall T_FillSector(unsigned char *P3Tiles, unsigned char *pSector, int xi, int yi, int w, int h) /* check 7 params: int AddSec */
{
int v7; // ebx
@ -1513,7 +1497,6 @@ void __fastcall T_FillSector(unsigned char *P3Tiles, unsigned char *pSector, int
}
}
//----- (0045FD75) --------------------------------------------------------
void __fastcall T_FillTile(unsigned char *P3Tiles, int xx, int yy, int t)
{
unsigned char *v4; // esi
@ -1540,7 +1523,6 @@ void __fastcall T_FillTile(unsigned char *P3Tiles, int xx, int yy, int t)
dPiece[xx + 1][yy + 1] = v6 + 1;
}
//----- (0045FDE6) --------------------------------------------------------
void __cdecl T_Pass3()
{
int *v1; // esi
@ -1611,7 +1593,6 @@ void __cdecl T_Pass3()
// 45FDE6: could not find valid save-restore pair for edi
// 679660: using guessed type char gbMaxPlayers;
//----- (0045FF83) --------------------------------------------------------
void __fastcall CreateTown(int entry)
{
int v1; // edi

View File

@ -1,4 +1,6 @@
//HEADER_GOES_HERE
#ifndef __TOWN_H__
#define __TOWN_H__
void __fastcall town_clear_upper_buf(int a1);
void __fastcall town_clear_low_buf(int y_related);
@ -19,3 +21,5 @@ void __fastcall T_FillSector(unsigned char *P3Tiles, unsigned char *pSector, int
void __fastcall T_FillTile(unsigned char *P3Tiles, int xx, int yy, int t);
void __cdecl T_Pass3();
void __fastcall CreateTown(int entry);
#endif /* __TOWN_H__ */

View File

@ -308,7 +308,6 @@ QuestTalkData Qtalklist[11] =
};
int CowPlaying = -1;
//----- (0046019B) --------------------------------------------------------
int __fastcall GetActiveTowner(int t)
{
int i; // eax
@ -326,7 +325,6 @@ int __fastcall GetActiveTowner(int t)
return i;
}
//----- (004601C1) --------------------------------------------------------
void __fastcall SetTownerGPtrs(void *pData, void **pAnim)
{
void **v2; // esi
@ -345,7 +343,6 @@ void __fastcall SetTownerGPtrs(void *pData, void **pAnim)
while ( v5 < 8 );
}
//----- (004601FB) --------------------------------------------------------
void __fastcall NewTownerAnim(int tnum, void *pAnim, int numFrames, int Delay)
{
int v4; // ecx
@ -358,7 +355,6 @@ void __fastcall NewTownerAnim(int tnum, void *pAnim, int numFrames, int Delay)
towner[v4]._tAnimDelay = Delay;
}
//----- (0046022F) --------------------------------------------------------
void __fastcall InitTownerInfo(int i, int w, bool sel, int t, int x, int y, int ao, int tp)
{
int v8; // ebx
@ -382,7 +378,6 @@ void __fastcall InitTownerInfo(int i, int w, bool sel, int t, int x, int y, int
towner[v9]._tSeed = GetRndSeed();
}
//----- (004602C4) --------------------------------------------------------
void __fastcall InitQstSnds(int i)
{
int v1; // eax
@ -412,7 +407,6 @@ void __fastcall InitQstSnds(int i)
// 69BE90: using guessed type int qline;
// 6AAC2C: using guessed type int boyloadflag;
//----- (00460311) --------------------------------------------------------
void __cdecl InitSmith()
{
int v0; // esi
@ -442,7 +436,6 @@ void __cdecl InitSmith()
++numtowners;
}
//----- (004603A0) --------------------------------------------------------
void __cdecl InitBarOwner()
{
int v0; // esi
@ -474,7 +467,6 @@ void __cdecl InitBarOwner()
}
// 6AAC28: using guessed type int bannerflag;
//----- (00460436) --------------------------------------------------------
void __cdecl InitTownDead()
{
int v0; // esi
@ -504,7 +496,6 @@ void __cdecl InitTownDead()
++numtowners;
}
//----- (004604C6) --------------------------------------------------------
void __cdecl InitWitch()
{
int v0; // esi
@ -532,7 +523,6 @@ void __cdecl InitWitch()
++numtowners;
}
//----- (00460555) --------------------------------------------------------
void __cdecl InitBarmaid()
{
int v0; // esi
@ -560,7 +550,6 @@ void __cdecl InitBarmaid()
++numtowners;
}
//----- (004605E4) --------------------------------------------------------
void __cdecl InitBoy()
{
int v0; // esi
@ -590,7 +579,6 @@ void __cdecl InitBoy()
}
// 6AAC2C: using guessed type int boyloadflag;
//----- (0046067A) --------------------------------------------------------
void __cdecl InitHealer()
{
int v0; // esi
@ -620,7 +608,6 @@ void __cdecl InitHealer()
++numtowners;
}
//----- (00460709) --------------------------------------------------------
void __cdecl InitTeller()
{
int v0; // esi
@ -648,7 +635,6 @@ void __cdecl InitTeller()
++numtowners;
}
//----- (00460798) --------------------------------------------------------
void __cdecl InitDrunk()
{
int v0; // esi
@ -676,7 +662,6 @@ void __cdecl InitDrunk()
++numtowners;
}
//----- (00460827) --------------------------------------------------------
void __cdecl InitCows()
{
unsigned char *v0; // eax
@ -740,7 +725,6 @@ void __cdecl InitCows()
}
// 6AAC2C: using guessed type int boyloadflag;
//----- (00460976) --------------------------------------------------------
void __cdecl InitTowners()
{
numtowners = 0;
@ -759,7 +743,6 @@ void __cdecl InitTowners()
}
// 6AAC2C: using guessed type int boyloadflag;
//----- (004609C3) --------------------------------------------------------
void __cdecl FreeTownerGFX()
{
void **v0; // esi
@ -788,7 +771,6 @@ void __cdecl FreeTownerGFX()
}
// 6ABB9C: using guessed type int dword_6ABB9C;
//----- (00460A05) --------------------------------------------------------
void __fastcall TownCtrlMsg(int i)
{
int p; // edi
@ -811,7 +793,6 @@ void __fastcall TownCtrlMsg(int i)
}
// 646D00: using guessed type char qtextflag;
//----- (00460A78) --------------------------------------------------------
void __cdecl TownBlackSmith()
{
int v0; // eax
@ -820,7 +801,6 @@ void __cdecl TownBlackSmith()
TownCtrlMsg(v0);
}
//----- (00460A86) --------------------------------------------------------
void __cdecl TownBarOwner()
{
int v0; // eax
@ -829,7 +809,6 @@ void __cdecl TownBarOwner()
TownCtrlMsg(v0);
}
//----- (00460A95) --------------------------------------------------------
void __cdecl TownDead()
{
int v0; // esi
@ -852,7 +831,6 @@ LABEL_6:
}
// 646D00: using guessed type char qtextflag;
//----- (00460B0D) --------------------------------------------------------
void __cdecl TownHealer()
{
int v0; // eax
@ -861,7 +839,6 @@ void __cdecl TownHealer()
TownCtrlMsg(v0);
}
//----- (00460B1C) --------------------------------------------------------
void __cdecl TownStory()
{
int v0; // eax
@ -870,7 +847,6 @@ void __cdecl TownStory()
TownCtrlMsg(v0);
}
//----- (00460B2B) --------------------------------------------------------
void __cdecl TownDrunk()
{
int v0; // eax
@ -879,7 +855,6 @@ void __cdecl TownDrunk()
TownCtrlMsg(v0);
}
//----- (00460B3A) --------------------------------------------------------
void __cdecl TownBoy()
{
int v0; // eax
@ -888,7 +863,6 @@ void __cdecl TownBoy()
TownCtrlMsg(v0);
}
//----- (00460B49) --------------------------------------------------------
void __cdecl TownWitch()
{
int v0; // eax
@ -897,7 +871,6 @@ void __cdecl TownWitch()
TownCtrlMsg(v0);
}
//----- (00460B58) --------------------------------------------------------
void __cdecl TownBarMaid()
{
int v0; // eax
@ -906,7 +879,6 @@ void __cdecl TownBarMaid()
TownCtrlMsg(v0);
}
//----- (00460B67) --------------------------------------------------------
void __cdecl TownCow()
{
int v0; // eax
@ -915,7 +887,6 @@ void __cdecl TownCow()
TownCtrlMsg(v0);
}
//----- (00460B76) --------------------------------------------------------
void __cdecl ProcessTowners()
{
int *v0; // esi
@ -985,7 +956,6 @@ void __cdecl ProcessTowners()
while ( (signed int)v0 < (signed int)&towner[16]._tAnimCnt );
}
//----- (00460C5C) --------------------------------------------------------
ItemStruct *__fastcall PlrHasItem(int pnum, int item, int *i)
{
unsigned int v3; // eax
@ -1005,7 +975,6 @@ ItemStruct *__fastcall PlrHasItem(int pnum, int item, int *i)
return (ItemStruct *)((char *)&plr[0].InvList[*i] + v3);
}
//----- (00460CAC) --------------------------------------------------------
void __fastcall TownerTalk(int t)
{
sgdwCowClicks = 0;
@ -1017,7 +986,6 @@ void __fastcall TownerTalk(int t)
// 6AAC1C: using guessed type int sgnCowMsg;
// 6AAC24: using guessed type int sgdwCowClicks;
//----- (00460CC9) --------------------------------------------------------
void __fastcall TalkToTowner(int p, int t)
{
int v2; // ebx
@ -1508,7 +1476,6 @@ LABEL_86:
// 679660: using guessed type char gbMaxPlayers;
// 6AAC18: using guessed type int storeflag;
//----- (004617E8) --------------------------------------------------------
void __fastcall CowSFX(int pnum)
{
if ( CowPlaying == -1 || !effect_is_playing(CowPlaying) )

View File

@ -1,6 +1,7 @@
//HEADER_GOES_HERE
#ifndef __TOWNERS_H__
#define __TOWNERS_H__
//towners
extern int storeflag; // weak
extern int sgnCowMsg; // weak
extern int numtowners; // idb
@ -58,3 +59,5 @@ extern int cowoffx[8];
extern int cowoffy[8];
extern QuestTalkData Qtalklist[11];
extern int CowPlaying;
#endif /* __TOWNERS_H__ */

View File

@ -9,7 +9,6 @@ bool sgbIsWalking; // weak
int track_inf = 0x7F800000; // weak
//----- (004618AA) --------------------------------------------------------
struct track_cpp_init
{
track_cpp_init()
@ -20,7 +19,6 @@ struct track_cpp_init
// 4802D0: using guessed type int track_inf;
// 6ABABC: using guessed type int track_cpp_init_value;
//----- (004618B5) --------------------------------------------------------
void __cdecl track_process()
{
int v0; // eax
@ -50,7 +48,6 @@ void __cdecl track_process()
// 6ABAC0: using guessed type int sgdwLastWalk;
// 6ABAC4: using guessed type int sgbIsWalking;
//----- (00461953) --------------------------------------------------------
void __fastcall track_repeat_walk(bool rep)
{
if ( sgbIsWalking != rep )
@ -72,7 +69,6 @@ void __fastcall track_repeat_walk(bool rep)
// 6ABAC0: using guessed type int sgdwLastWalk;
// 6ABAC4: using guessed type int sgbIsWalking;
//----- (0046199F) --------------------------------------------------------
bool __cdecl track_isscrolling()
{
return sgbIsScrolling;

View File

@ -1,6 +1,7 @@
//HEADER_GOES_HERE
#ifndef __TRACK_H__
#define __TRACK_H__
//track
extern bool sgbIsScrolling; // weak
extern int track_cpp_init_value; // weak
extern int sgdwLastWalk; // weak
@ -14,3 +15,5 @@ bool __cdecl track_isscrolling();
/* data */
extern int track_inf; // weak
#endif /* __TRACK_H__ */

View File

@ -88,14 +88,12 @@ int L4PentaList[33] =
-1
};
//----- (004619A7) --------------------------------------------------------
void __cdecl InitNoTriggers()
{
trigflag[4] = 0;
trigflag[3] = 0;
}
//----- (004619B6) --------------------------------------------------------
void __cdecl InitTownTriggers()
{
char v0; // bl
@ -163,7 +161,6 @@ void __cdecl InitTownTriggers()
}
// 679660: using guessed type char gbMaxPlayers;
//----- (00461B45) --------------------------------------------------------
void __cdecl InitL1Triggers()
{
int v0; // edi
@ -217,7 +214,6 @@ void __cdecl InitL1Triggers()
trigflag[3] = 0;
}
//----- (00461BEE) --------------------------------------------------------
void __cdecl InitL2Triggers()
{
signed int v0; // edi
@ -289,7 +285,6 @@ void __cdecl InitL2Triggers()
trigflag[3] = 0;
}
//----- (00461CF6) --------------------------------------------------------
void __cdecl InitL3Triggers()
{
int v0; // edi
@ -353,7 +348,6 @@ void __cdecl InitL3Triggers()
trigflag[3] = 0;
}
//----- (00461DC6) --------------------------------------------------------
void __cdecl InitL4Triggers()
{
signed int v0; // edi
@ -453,7 +447,6 @@ void __cdecl InitL4Triggers()
trigflag[3] = 0;
}
//----- (00461F0A) --------------------------------------------------------
void __cdecl InitSKingTriggers()
{
trigflag[3] = 0;
@ -463,7 +456,6 @@ void __cdecl InitSKingTriggers()
trigs[0]._tmsg = 1028;
}
//----- (00461F3A) --------------------------------------------------------
void __cdecl InitSChambTriggers()
{
trigflag[3] = 0;
@ -473,7 +465,6 @@ void __cdecl InitSChambTriggers()
trigs[0]._tmsg = 1028;
}
//----- (00461F6A) --------------------------------------------------------
void __cdecl InitPWaterTriggers()
{
trigflag[3] = 0;
@ -483,7 +474,6 @@ void __cdecl InitPWaterTriggers()
trigs[0]._tmsg = 1028;
}
//----- (00461F9A) --------------------------------------------------------
void __cdecl InitVPTriggers()
{
trigflag[3] = 0;
@ -493,7 +483,6 @@ void __cdecl InitVPTriggers()
trigs[0]._tmsg = 1028;
}
//----- (00461FCA) --------------------------------------------------------
unsigned char __cdecl ForceTownTrig()
{
int v0; // edx
@ -570,7 +559,6 @@ LABEL_17:
return 0;
}
//----- (00462130) --------------------------------------------------------
unsigned char __cdecl ForceL1Trig()
{
int *v0; // eax
@ -652,7 +640,6 @@ LABEL_11:
return 1;
}
//----- (0046224C) --------------------------------------------------------
unsigned char __cdecl ForceL2Trig()
{
int *v0; // eax
@ -790,7 +777,6 @@ LABEL_37:
return 1;
}
//----- (0046244F) --------------------------------------------------------
unsigned char __cdecl ForceL3Trig()
{
int *v0; // eax
@ -924,7 +910,6 @@ LABEL_29:
return 0;
}
//----- (0046262D) --------------------------------------------------------
unsigned char __cdecl ForceL4Trig()
{
int *v0; // eax
@ -1093,7 +1078,6 @@ LABEL_40:
return 0;
}
//----- (00462876) --------------------------------------------------------
void __cdecl Freeupstairs()
{
int *v0; // ecx
@ -1133,7 +1117,6 @@ void __cdecl Freeupstairs()
}
}
//----- (004628B7) --------------------------------------------------------
unsigned char __cdecl ForceSKingTrig()
{
int v0; // eax
@ -1156,7 +1139,6 @@ unsigned char __cdecl ForceSKingTrig()
return 1;
}
//----- (0046291F) --------------------------------------------------------
unsigned char __cdecl ForceSChambTrig()
{
int v0; // eax
@ -1179,7 +1161,6 @@ unsigned char __cdecl ForceSChambTrig()
return 1;
}
//----- (00462987) --------------------------------------------------------
unsigned char __cdecl ForcePWaterTrig()
{
int v0; // eax
@ -1202,7 +1183,6 @@ unsigned char __cdecl ForcePWaterTrig()
return 1;
}
//----- (004629EF) --------------------------------------------------------
void __cdecl CheckTrigForce()
{
int v0; // eax
@ -1276,7 +1256,6 @@ LABEL_24:
// 5CCB10: using guessed type char setlvlnum;
// 5CF31D: using guessed type char setlevel;
//----- (00462A9D) --------------------------------------------------------
void __cdecl CheckTriggers()
{
int *v0; // edi

View File

@ -1,6 +1,7 @@
//HEADER_GOES_HERE
#ifndef __TRIGS_H__
#define __TRIGS_H__
//trigs
extern int trigflag[5];
extern TriggerStruct trigs[5];
extern int TWarpFrom; // weak
@ -43,3 +44,5 @@ extern int L4UpList[4];
extern int L4DownList[6];
extern int L4TWarpUpList[4];
extern int L4PentaList[33];
#endif /* __TRIGS_H__ */

View File

@ -6,7 +6,6 @@ int wave_cpp_init_value; // weak
int wave_inf = 0x7F800000; // weak
//----- (00462C72) --------------------------------------------------------
struct wave_cpp_init
{
wave_cpp_init()
@ -17,13 +16,11 @@ struct wave_cpp_init
// 4802D4: using guessed type int wave_inf;
// 6ABB34: using guessed type int wave_cpp_init_value;
//----- (00462C7D) --------------------------------------------------------
bool __fastcall WCloseFile(void *file)
{
return SFileCloseFile(file);
}
//----- (00462C84) --------------------------------------------------------
int __fastcall WGetFileSize(HANDLE hsFile, unsigned long *a2)
{
unsigned long *v2; // edi
@ -42,7 +39,6 @@ int __fastcall WGetFileSize(HANDLE hsFile, unsigned long *a2)
return result;
}
//----- (00462CAF) --------------------------------------------------------
void __fastcall WGetFileArchive(HANDLE hsFile, int *a2, char *dwInitParam)
{
int *v3; // esi
@ -68,7 +64,6 @@ void __fastcall WGetFileArchive(HANDLE hsFile, int *a2, char *dwInitParam)
}
}
//----- (00462D06) --------------------------------------------------------
int __fastcall WOpenFile(char *dwInitParam, HANDLE *phsFile, int a3)
{
HANDLE *v3; // edi
@ -89,7 +84,6 @@ int __fastcall WOpenFile(char *dwInitParam, HANDLE *phsFile, int a3)
return 0;
}
//----- (00462D48) --------------------------------------------------------
char __fastcall WReadFile(HANDLE hsFile, char *buf, int a3)
{
char *v3; // ebx
@ -112,7 +106,6 @@ char __fastcall WReadFile(HANDLE hsFile, char *buf, int a3)
return v5;
}
//----- (00462D9A) --------------------------------------------------------
int __fastcall WSetFilePointer(HANDLE file1, int offset, HANDLE file2, int whence)
{
int v4; // edi
@ -131,7 +124,6 @@ int __fastcall WSetFilePointer(HANDLE file1, int offset, HANDLE file2, int whenc
return result;
}
//----- (00462DCE) --------------------------------------------------------
int __fastcall LoadWaveFormat(HANDLE hsFile, WAVEFORMATEX *pwfx)
{
WAVEFORMATEX *v2; // esi
@ -145,7 +137,6 @@ int __fastcall LoadWaveFormat(HANDLE hsFile, WAVEFORMATEX *pwfx)
return v3;
}
//----- (00462DFC) --------------------------------------------------------
void *__fastcall AllocateMemFile(HANDLE hsFile, MEMFILE *pMemFile, unsigned int a3)
{
MEMFILE *v3; // esi
@ -172,7 +163,6 @@ void *__fastcall AllocateMemFile(HANDLE hsFile, MEMFILE *pMemFile, unsigned int
return result;
}
//----- (00462E45) --------------------------------------------------------
void __fastcall FreeMemFile(MEMFILE *pMemFile)
{
MEMFILE *v1; // eax
@ -184,7 +174,6 @@ void __fastcall FreeMemFile(MEMFILE *pMemFile)
mem_free_dbg(v2);
}
//----- (00462E53) --------------------------------------------------------
int __fastcall ReadWaveFile(MEMFILE *pMemFile, WAVEFORMATEX *pwfx, int *a3)
{
WAVEFORMATEX *v3; // esi
@ -222,7 +211,6 @@ int __fastcall ReadWaveFile(MEMFILE *pMemFile, WAVEFORMATEX *pwfx, int *a3)
return result;
}
//----- (00462F1D) --------------------------------------------------------
int __fastcall ReadMemFile(MEMFILE *pMemFile, void *lpBuf, size_t a3)
{
size_t v3; // ebx
@ -255,7 +243,6 @@ int __fastcall ReadMemFile(MEMFILE *pMemFile, void *lpBuf, size_t a3)
return 0;
}
//----- (00462F73) --------------------------------------------------------
void __fastcall FillMemFile(MEMFILE *pMemFile)
{
MEMFILE *v1; // esi
@ -272,7 +259,6 @@ void __fastcall FillMemFile(MEMFILE *pMemFile)
v1->bytes_to_read = v2;
}
//----- (00462FAE) --------------------------------------------------------
int __fastcall SeekMemFile(MEMFILE *pMemFile, unsigned int lDist, int dwMethod)
{
unsigned int v3; // eax
@ -291,7 +277,6 @@ int __fastcall SeekMemFile(MEMFILE *pMemFile, unsigned int lDist, int dwMethod)
return pMemFile->offset;
}
//----- (00462FCC) --------------------------------------------------------
int __fastcall ReadWaveSection(MEMFILE *pMemFile, int a2, int *a3)
{
int v3; // esi
@ -316,7 +301,6 @@ int __fastcall ReadWaveSection(MEMFILE *pMemFile, int a2, int *a3)
return v6 != -1;
}
//----- (00463023) --------------------------------------------------------
void *__fastcall LoadWaveFile(HANDLE hsFile, WAVEFORMATEX *pwfx, int *a3)
{
WAVEFORMATEX *v3; // esi

View File

@ -1,6 +1,7 @@
//HEADER_GOES_HERE
#ifndef __WAVE_H__
#define __WAVE_H__
//wave
extern int wave_cpp_init_value; // weak
//int dword_6ABB9C; // weak
@ -25,3 +26,5 @@ void __fastcall j_engine_mem_free(void *ptr);
/* data */
extern int wave_inf; // weak
#endif /* __WAVE_H__ */

View File

@ -74,7 +74,6 @@ int world_4B3501[17] = { 0, 32, 60, 88, 112, 136, 156, 176, 192, 208, 220, 232,
|/
*/
//----- (00463060) --------------------------------------------------------
void __fastcall drawTopArchesUpperScreen(void *a1)
{
char v1; // edx
@ -2567,7 +2566,6 @@ LABEL_391:
// 69CF0C: using guessed type int screen_buf_end;
// 69CF14: using guessed type int level_cel_block;
//----- (0046468D) --------------------------------------------------------
void __fastcall drawBottomArchesUpperScreen(void *a1, int a2)
{
char *v2; // edi
@ -3683,7 +3681,6 @@ LABEL_208:
// 69CF0C: using guessed type int screen_buf_end;
// 69CF14: using guessed type int level_cel_block;
//----- (004652C5) --------------------------------------------------------
void __fastcall drawUpperScreen(void *a1)
{
char v1; // edx
@ -4879,7 +4876,6 @@ LABEL_205:
// 69CF94: using guessed type int cel_transparency_active;
// 69CF98: using guessed type int level_piece_id;
//----- (00465F38) --------------------------------------------------------
void __fastcall drawTopArchesLowerScreen(void *a1)
{
char v1; // edx
@ -7728,7 +7724,6 @@ LABEL_336:
// 69CF0C: using guessed type int screen_buf_end;
// 69CF14: using guessed type int level_cel_block;
//----- (00467949) --------------------------------------------------------
void __fastcall drawBottomArchesLowerScreen(void *a1, int a2)
{
char *v2; // edi
@ -9089,7 +9084,6 @@ LABEL_180:
// 69CF0C: using guessed type int screen_buf_end;
// 69CF14: using guessed type int level_cel_block;
//----- (0046886B) --------------------------------------------------------
void __fastcall drawLowerScreen(void *a1)
{
char v1; // edx
@ -10407,7 +10401,6 @@ LABEL_171:
// 69CF94: using guessed type int cel_transparency_active;
// 69CF98: using guessed type int level_piece_id;
//----- (004696BE) --------------------------------------------------------
void __fastcall world_draw_black_tile(char *dst_buf)
{
char *v1; // edi

View File

@ -1,4 +1,6 @@
//HEADER_GOES_HERE
#ifndef __WORLD_H__
#define __WORLD_H__
void __fastcall drawTopArchesUpperScreen(void *a1);
void __fastcall drawBottomArchesUpperScreen(void *a1, int a2);
@ -18,3 +20,5 @@ extern unsigned int tile_draw_masks[3][32];
extern int world_4B33FD[48];
extern int world_4B34BD[17];
extern int world_4B3501[17];
#endif /* __WORLD_H__ */