@@ -567,7 +567,7 @@ void __cdecl DrawInvBelt()
567567 v1 = v11;
568568 InvDrawSlotBack (InvRect[v11 + 65 ].X + 64 , InvRect[v11 + 65 ].Y + 159 , 28 , 28 );
569569 v2 = myplr;
570- v3 = v0 + StructSize<PlayerStruct >() * myplr;
570+ v3 = v0 + StructSize<LATEST_PLAYERSTRUCT >() * myplr;
571571 v4 = *(int *)((char *)&plr[0 ].SpdList [0 ]._iCurs + v3) + 12 ;
572572 frame_width = InvItemWidth[v4];
573573 if ( pcursinvitem == v11 + 47 )
@@ -596,7 +596,7 @@ void __cdecl DrawInvBelt()
596596 CelDrawHdrLightRed (v8 + 64 , v6, (char *)pCursCels, v4, frame_width, 0 , 8 , 1 );
597597 else
598598 CelDrawHdrOnly (v8 + 64 , v6, (char *)pCursCels, v4, frame_width, 0 , 8 );
599- v9 = v13 + StructSize<PlayerStruct >() * myplr;
599+ v9 = v13 + StructSize<LATEST_PLAYERSTRUCT >() * myplr;
600600 if ( AllItemsList[*(int *)((char *)&plr[0 ].SpdList [0 ].IDidx + v9)].iUsable
601601 && *(int *)((char *)&plr[0 ].SpdList [0 ]._iStatFlag + v9)
602602 && *(int *)((char *)&plr[0 ].SpdList [0 ]._itype + v9) != 11 )
@@ -862,10 +862,10 @@ int __fastcall GoldAutoPlace(int pnum)
862862 {
863863 if ( v3 )
864864 break ;
865- v10 = &plr[0 ].InvGrid [10 * (v9 / 10 ) + v1 * StructSize<PlayerStruct >() + v9 % 10 ];
865+ v10 = &plr[0 ].InvGrid [10 * (v9 / 10 ) + v1 * StructSize<LATEST_PLAYERSTRUCT >() + v9 % 10 ];
866866 if ( !*v10 )
867867 {
868- v11 = v1 * StructSize<PlayerStruct >() + StructSize<ItemStruct>() * plr[v1]._pNumInv ;
868+ v11 = v1 * StructSize<LATEST_PLAYERSTRUCT >() + StructSize<ItemStruct>() * plr[v1]._pNumInv ;
869869 qmemcpy ((char *)plr[0 ].InvList + v11, &plr[v1].HoldItem , StructSize<ItemStruct>());
870870 ++plr[v1]._pNumInv ;
871871 *v10 = plr[v1]._pNumInv ;
@@ -1168,15 +1168,15 @@ void __fastcall CheckInvPaste(int pnum, int mx, int my, bool shift)
11681168 v13 = (v68 - 25 ) / 10 ;
11691169 if ( plr[v3].HoldItem ._itype == ITYPE_GOLD )
11701170 {
1171- _LOBYTE (v13) = plr[0 ].InvGrid [10 * v13 + v3 * StructSize<PlayerStruct >() + (v68 - 25 ) % 10 ];
1171+ _LOBYTE (v13) = plr[0 ].InvGrid [10 * v13 + v3 * StructSize<LATEST_PLAYERSTRUCT >() + (v68 - 25 ) % 10 ];
11721172 if ( !(_BYTE)v13 )
11731173 goto LABEL_93;
11741174 v13 = (char )v13;
11751175 if ( (char )v13 <= 0 )
11761176 {
11771177 v13 = -v13;
11781178 }
1179- else if ( *(int *)((char *)&plr[0 ].InvBody [v13 + 6 ]._itype + v3 * StructSize<PlayerStruct >()) == ITYPE_GOLD )
1179+ else if ( *(int *)((char *)&plr[0 ].InvBody [v13 + 6 ]._itype + v3 * StructSize<LATEST_PLAYERSTRUCT >()) == ITYPE_GOLD )
11801180 {
11811181 goto LABEL_93;
11821182 }
@@ -1379,10 +1379,10 @@ void __fastcall CheckInvPaste(int pnum, int mx, int my, bool shift)
13791379 {
13801380 if ( !v66 )
13811381 {
1382- v36 = &plr[0 ].InvGrid [10 * ((v68 - 25 ) / 10 ) + v3 * StructSize<PlayerStruct >() + (v68 - 25 ) % 10 ];
1382+ v36 = &plr[0 ].InvGrid [10 * ((v68 - 25 ) / 10 ) + v3 * StructSize<LATEST_PLAYERSTRUCT >() + (v68 - 25 ) % 10 ];
13831383 if ( *v36 <= 0 )
13841384 {
1385- v42 = StructSize<ItemStruct>() * plr[v3]._pNumInv + v3 * StructSize<PlayerStruct >();
1385+ v42 = StructSize<ItemStruct>() * plr[v3]._pNumInv + v3 * StructSize<LATEST_PLAYERSTRUCT >();
13861386 qmemcpy ((char *)plr[0 ].InvList + v42, &plr[v3].HoldItem , StructSize<ItemStruct>());
13871387 ++plr[v3]._pNumInv ;
13881388 *v36 = plr[v3]._pNumInv ;
@@ -1405,7 +1405,7 @@ void __fastcall CheckInvPaste(int pnum, int mx, int my, bool shift)
14051405 goto LABEL_226;
14061406 }
14071407 v37 = plr[v3].HoldItem ._ivalue ;
1408- v38 = StructSize<ItemStruct>() * (*v36 - 1 ) + v3 * StructSize<PlayerStruct >();
1408+ v38 = StructSize<ItemStruct>() * (*v36 - 1 ) + v3 * StructSize<LATEST_PLAYERSTRUCT >();
14091409 v39 = *(int *)((char *)&plr[0 ].InvList [0 ]._ivalue + v38);
14101410 v40 = v37 + v39;
14111411 if ( v37 + v39 <= maxGoldPile)
@@ -1441,7 +1441,7 @@ void __fastcall CheckInvPaste(int pnum, int mx, int my, bool shift)
14411441 }
14421442 else if ( !v66 )
14431443 {
1444- qmemcpy ((char *)&plr[0 ].InvList [plr[v3]._pNumInv ++] + v3 * StructSize<PlayerStruct >(), &plr[v3].HoldItem , StructSize<ItemStruct>());
1444+ qmemcpy ((char *)&plr[0 ].InvList [plr[v3]._pNumInv ++] + v3 * StructSize<LATEST_PLAYERSTRUCT >(), &plr[v3].HoldItem , StructSize<ItemStruct>());
14451445 v66 = plr[v3]._pNumInv ;
14461446LABEL_191:
14471447 v48 = v67;
@@ -1482,7 +1482,7 @@ void __fastcall CheckInvPaste(int pnum, int mx, int my, bool shift)
14821482 v44 = v66 - 1 ;
14831483 if ( v35 == 11 )
14841484 plr[v3]._pGold += plr[v3].HoldItem ._ivalue ;
1485- cursor_ida = SwapItem ((ItemStruct *)((char *)&plr[0 ].InvList [v44] + v3 * StructSize<PlayerStruct >()), &plr[v3].HoldItem );
1485+ cursor_ida = SwapItem ((ItemStruct *)((char *)&plr[0 ].InvList [v44] + v3 * StructSize<LATEST_PLAYERSTRUCT >()), &plr[v3].HoldItem );
14861486 if ( plr[v3].HoldItem ._itype == ITYPE_GOLD )
14871487 plr[v3]._pGold = CalculateGold (v21);
14881488 v45 = 0 ;
@@ -1499,7 +1499,7 @@ void __fastcall CheckInvPaste(int pnum, int mx, int my, bool shift)
14991499 while ( v45 < 40 );
15001500 goto LABEL_191;
15011501 case ILOC_BELT:
1502- v53 = v3 * StructSize<PlayerStruct >() + StructSize<ItemStruct>() * (v68 - 65 );
1502+ v53 = v3 * StructSize<LATEST_PLAYERSTRUCT >() + StructSize<ItemStruct>() * (v68 - 65 );
15031503 if ( plr[v3].HoldItem ._itype != ITYPE_GOLD )
15041504 {
15051505 if ( *(int *)((char *)&plr[0 ].SpdList [0 ]._itype + v53) == ITYPE_NONE )
@@ -1690,7 +1690,7 @@ void __fastcall CheckInvSwap(int pnum, BYTE bLoc, int idx, WORD wCI, int seed, B
16901690{
16911691 RecreateItem (MAXITEMS, idx, wCI, seed, 0 , rare);
16921692
1693- PlayerStruct *p = &plr[pnum];
1693+ LATEST_PLAYERSTRUCT *p = &plr[pnum];
16941694 p->HoldItem = item[MAXITEMS];
16951695 if (bId)
16961696 {
@@ -1998,7 +1998,7 @@ bool CanPutToBelt(int miscId)
19981998
19991999int FreeSlotOnBelt () {
20002000
2001- PlayerStruct & player = plr[myplr];
2001+ LATEST_PLAYERSTRUCT & player = plr[myplr];
20022002 // int countOfItems = 0;
20032003 for (int beltIndex = 0 ; beltIndex < 8 ; beltIndex++) {
20042004 if (player.SpdList [beltIndex]._itype == ITYPE_NONE) {
@@ -2035,7 +2035,7 @@ void __cdecl CheckInvScrn()
20352035
20362036void __fastcall CheckItemStats (int pnum)
20372037{
2038- PlayerStruct *p = &plr[pnum];
2038+ LATEST_PLAYERSTRUCT *p = &plr[pnum];
20392039
20402040 p->HoldItem ._iStatFlag = FALSE ;
20412041
@@ -2060,8 +2060,8 @@ void __fastcall CheckBookLevel(int pnum)
20602060 v2 = plr[v1].HoldItem ._iSpell ;
20612061 v3 = spelldata[plr[v1].HoldItem ._iSpell ].sMinInt ;
20622062 plr[v1].HoldItem ._iMinMag = v3;
2063- v4 = plr[0 ]._pSplLvl [v2 + v1 * StructSize<PlayerStruct >()];
2064- if ( plr[0 ]._pSplLvl [v2 + v1 * StructSize<PlayerStruct >()] )
2063+ v4 = plr[0 ]._pSplLvl [v2 + v1 * StructSize<LATEST_PLAYERSTRUCT >()];
2064+ if ( plr[0 ]._pSplLvl [v2 + v1 * StructSize<LATEST_PLAYERSTRUCT >()] )
20652065 {
20662066 do
20672067 {
@@ -2965,7 +2965,7 @@ int __cdecl CheckInvHLight()
29652965 signed int v0; // ebx
29662966 int result; // eax
29672967 ItemStruct *v2; // edi
2968- PlayerStruct *v3; // esi
2968+ LATEST_PLAYERSTRUCT *v3; // esi
29692969 int v4; // eax
29702970 int v5; // ebx
29712971 int v6; // edi
@@ -3284,14 +3284,14 @@ int __fastcall UseInvItem(int pnum, int cii)
32843284 return result;
32853285 v4 = cii - 47 ;
32863286 v14 = 1 ;
3287- v5 = StructSize<ItemStruct>() * (cii - 47 ) + v2 * StructSize<PlayerStruct >();
3287+ v5 = StructSize<ItemStruct>() * (cii - 47 ) + v2 * StructSize<LATEST_PLAYERSTRUCT >();
32883288 v6 = (_DWORD *)((char *)plr[0 ].SpdList + v5);
32893289 }
32903290 else
32913291 {
32923292 v4 = cii - 7 ;
32933293 v14 = 0 ;
3294- v5 = StructSize<ItemStruct>() * (cii - 7 ) + v2 * StructSize<PlayerStruct >();
3294+ v5 = StructSize<ItemStruct>() * (cii - 7 ) + v2 * StructSize<LATEST_PLAYERSTRUCT >();
32953295 v6 = (_DWORD *)((char *)plr[0 ].InvList + v5);
32963296 }
32973297 if ( v6[90 ] == 17 )
0 commit comments