Updated CS:GO HandleCommand_Buy_Internal detour with new bool param.
This commit is contained in:
		
							parent
							
								
									18285ca751
								
							
						
					
					
						commit
						e74d5593a8
					
				| @ -21,7 +21,11 @@ CDetour *DCSWeaponDrop = NULL; | ||||
| 
 | ||||
| int weaponNameOffset = -1; | ||||
| 
 | ||||
| #if SOURCE_ENGINE == SE_CSGO | ||||
| DETOUR_DECL_MEMBER2(DetourHandleBuy, int, const char *, weapon, bool, bRebuy) | ||||
| #else | ||||
| DETOUR_DECL_MEMBER1(DetourHandleBuy, int, const char *, weapon) | ||||
| #endif | ||||
| { | ||||
| 	int client = gamehelpers->EntityToBCompatRef(reinterpret_cast<CBaseEntity *>(this)); | ||||
| 
 | ||||
| @ -45,9 +49,12 @@ DETOUR_DECL_MEMBER1(DetourHandleBuy, int, const char *, weapon) | ||||
| 	{ | ||||
| 		defaultprice = CallPriceForwardCSGO(client, weapon); | ||||
| 	} | ||||
| 
 | ||||
| 	int val = DETOUR_MEMBER_CALL(DetourHandleBuy)(weapon, bRebuy); | ||||
| #else | ||||
| 	int val = DETOUR_MEMBER_CALL(DetourHandleBuy)(weapon); | ||||
| #endif | ||||
| 
 | ||||
| 	int val = DETOUR_MEMBER_CALL(DetourHandleBuy)(weapon); | ||||
| 
 | ||||
| #if SOURCE_ENGINE == SE_CSGO | ||||
| 	if (defaultprice != -1) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user