@@ -2447,7 +2447,7 @@ bool CClientGame::ProcessMessageForCursorEvents(HWND hwnd, UINT uMsg, WPARAM wPa
2447
2447
2448
2448
CVector vecCollision;
2449
2449
ElementID CollisionEntityID = INVALID_ELEMENT_ID;
2450
- CClientEntity* pCollisionEntity = nullptr ;
2450
+ CClientEntity* collisionEntity = nullptr ;
2451
2451
2452
2452
if (bCollision && pColPoint)
2453
2453
{
@@ -2458,7 +2458,7 @@ bool CClientGame::ProcessMessageForCursorEvents(HWND hwnd, UINT uMsg, WPARAM wPa
2458
2458
CClientEntity* pEntity = pPools->GetClientEntity ((DWORD*)pGameEntity->GetInterface ());
2459
2459
if (pEntity)
2460
2460
{
2461
- pCollisionEntity = pEntity;
2461
+ collisionEntity = pEntity;
2462
2462
if (!pEntity->IsLocalEntity ())
2463
2463
CollisionEntityID = pEntity->GetID ();
2464
2464
}
@@ -2511,23 +2511,23 @@ bool CClientGame::ProcessMessageForCursorEvents(HWND hwnd, UINT uMsg, WPARAM wPa
2511
2511
if (std::isnan (vecCollision.fZ ))
2512
2512
vecCollision.fZ = 0 ;
2513
2513
2514
- float fMarkerDistance = 0 .0f ;
2515
- CClientMarker* pClickedMarker = CheckMarkerClick (static_cast <float >(iX), static_cast <float >(iY), fMarkerDistance );
2516
- if (pClickedMarker )
2514
+ float markerDistance = 0 .0f ;
2515
+ CClientMarker* clickedMarker = CheckMarkerClick (static_cast <float >(iX), static_cast <float >(iY), markerDistance );
2516
+ if (clickedMarker )
2517
2517
{
2518
- CVector vecMarkerPosition ;
2519
- pClickedMarker ->GetPosition (vecMarkerPosition );
2518
+ CVector markerPosition ;
2519
+ clickedMarker ->GetPosition (markerPosition );
2520
2520
2521
2521
CLuaArguments MarkerArguments;
2522
2522
MarkerArguments.PushString (szButton);
2523
2523
MarkerArguments.PushString (szState);
2524
2524
MarkerArguments.PushNumber (vecCursorPosition.fX );
2525
2525
MarkerArguments.PushNumber (vecCursorPosition.fY );
2526
- MarkerArguments.PushNumber (vecMarkerPosition .fX );
2527
- MarkerArguments.PushNumber (vecMarkerPosition .fY );
2528
- MarkerArguments.PushNumber (vecMarkerPosition .fZ );
2529
- MarkerArguments.PushNumber (fMarkerDistance );
2530
- pClickedMarker ->CallEvent (" onClientMarkerClick" , MarkerArguments, false );
2526
+ MarkerArguments.PushNumber (markerPosition .fX );
2527
+ MarkerArguments.PushNumber (markerPosition .fY );
2528
+ MarkerArguments.PushNumber (markerPosition .fZ );
2529
+ MarkerArguments.PushNumber (markerDistance );
2530
+ clickedMarker ->CallEvent (" onClientMarkerClick" , MarkerArguments, false );
2531
2531
}
2532
2532
2533
2533
// Call the event for the client
@@ -2539,8 +2539,8 @@ bool CClientGame::ProcessMessageForCursorEvents(HWND hwnd, UINT uMsg, WPARAM wPa
2539
2539
Arguments.PushNumber (vecCollision.fX );
2540
2540
Arguments.PushNumber (vecCollision.fY );
2541
2541
Arguments.PushNumber (vecCollision.fZ );
2542
- if (pCollisionEntity )
2543
- Arguments.PushElement (pCollisionEntity );
2542
+ if (collisionEntity )
2543
+ Arguments.PushElement (collisionEntity );
2544
2544
else
2545
2545
Arguments.PushBoolean (false );
2546
2546
m_pRootEntity->CallEvent (" onClientClick" , Arguments, false );
@@ -2583,8 +2583,8 @@ bool CClientGame::ProcessMessageForCursorEvents(HWND hwnd, UINT uMsg, WPARAM wPa
2583
2583
DoubleClickArguments.PushNumber (vecCollision.fX );
2584
2584
DoubleClickArguments.PushNumber (vecCollision.fY );
2585
2585
DoubleClickArguments.PushNumber (vecCollision.fZ );
2586
- if (pCollisionEntity )
2587
- DoubleClickArguments.PushElement (pCollisionEntity );
2586
+ if (collisionEntity )
2587
+ DoubleClickArguments.PushElement (collisionEntity );
2588
2588
else
2589
2589
DoubleClickArguments.PushBoolean (false );
2590
2590
m_pRootEntity->CallEvent (" onClientDoubleClick" , DoubleClickArguments, false );
0 commit comments