Skip to content

Commit

Permalink
Fixes #141
Browse files Browse the repository at this point in the history
  • Loading branch information
WoutProvost committed Apr 2, 2018
1 parent c337580 commit da59b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ void CFunctions::PlayerShoot(WORD wPlayerId, WORD wHitId, BYTE byteHitType, BYTE
pPlayerData->SetBulletSync(&bulletSyncData);

// call FCNPC_OnWeaponShot
int send = CCallbackManager::OnWeaponShot(wPlayerId, bulletSyncData.wHitID, bulletSyncData.byteHitType, bulletSyncData.byteWeaponID, bulletSyncData.vecCenterOfHit);
int send = CCallbackManager::OnWeaponShot(wPlayerId, bulletSyncData.byteWeaponID, bulletSyncData.byteHitType, bulletSyncData.wHitID, bulletSyncData.vecCenterOfHit);
if (send != 0) {
// if it is a NPC
if (bIsHit && bulletSyncData.byteHitType == BULLET_HIT_TYPE_PLAYER && pServer->GetPlayerManager()->IsNpcConnected(bulletSyncData.wHitID)) {
Expand Down

0 comments on commit da59b59

Please sign in to comment.