mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 11:43:04 +08:00
Match CVehiclePool::FUNC_1001EB30; the widened callee parameter forces the movzx
This commit is contained in:
@@ -14,6 +14,9 @@ typedef char chk_field_DC54[offsetof(CVehiclePool, field_DC54) == 0xDC54 ? 1 : -
|
||||
typedef char chk_field_FB94[offsetof(CVehiclePool, field_FB94) == 0xFB94 ? 1 : -1];
|
||||
typedef char chk_field_11AD4[offsetof(CVehiclePool, field_11AD4) == 0x11AD4 ? 1 : -1];
|
||||
typedef char chk_field_17894[offsetof(CVehiclePool, field_17894) == 0x17894 ? 1 : -1];
|
||||
typedef char chk_CVehicle_field_64[offsetof(CVehicle, field_64) == 0x64 ? 1 : -1];
|
||||
typedef char chk_CVehicle_field_65[offsetof(CVehicle, field_65) == 0x65 ? 1 : -1];
|
||||
typedef char chk_CVehicle_field_71[offsetof(CVehicle, field_71) == 0x71 ? 1 : -1];
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
@@ -110,3 +113,17 @@ int CVehiclePool::FUNC_1001EA80(unsigned short VehicleID)
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CVehiclePool::FUNC_1001EB30(unsigned short VehicleID, char a2, BYTE a3)
|
||||
{
|
||||
if(VehicleID < MAX_VEHICLES && field_3074[VehicleID] && field_1134[VehicleID] && field_BD14[VehicleID]) {
|
||||
CVehicle *pVehicle = (CVehicle *)field_1134[VehicleID];
|
||||
if(a2) {
|
||||
pVehicle->field_64 = 1;
|
||||
pVehicle->field_65 = 0;
|
||||
}
|
||||
pVehicle->FUNC_100B7840(a3);
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
@@ -43,6 +43,8 @@ public:
|
||||
|
||||
void FUNC_1001EB00(unsigned short VehicleID, int a2); // .text:1001EB00
|
||||
|
||||
void FUNC_1001EB30(unsigned short VehicleID, char a2, BYTE a3); // .text:1001EB30
|
||||
|
||||
void FUNC_1001EDE0(); // .text:1001EDE0
|
||||
|
||||
short FUNC_1001EB90(int a1); // .text:1001EB90
|
||||
|
||||
Reference in New Issue
Block a user