Skip to content

Commit bc24edd

Browse files
committed
v5.4
- Fixed a bug related to grabbing WorldSpawn
1 parent 9110fa4 commit bc24edd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/TF2Sandbox-PhysicsGun.smx

2 Bytes
Binary file not shown.

scripting/TF2Sandbox-PhysicsGun.sp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define DEBUG
44

55
#define PLUGIN_AUTHOR "BattlefieldDuck"
6-
#define PLUGIN_VERSION "5.3"
6+
#define PLUGIN_VERSION "5.4"
77

88
#include <sourcemod>
99
#include <sdkhooks>
@@ -341,7 +341,7 @@ float[] GetPointAimPosition(float pos[3], float angles[3], float maxtracedistanc
341341
if(TR_DidHit(trace))
342342
{
343343
int entity = TR_GetEntityIndex(trace);
344-
if ((Build_ReturnEntityOwner(entity) == client || CheckCommandAccess(client, "sm_admin", ADMFLAG_GENERIC)))
344+
if (entity > 0 && (Build_ReturnEntityOwner(entity) == client || CheckCommandAccess(client, "sm_admin", ADMFLAG_GENERIC)))
345345
{
346346
g_iAimingEntityRef[client] = EntIndexToEntRef(entity);
347347

0 commit comments

Comments
 (0)