Skip to content

Commit

Permalink
v5.4
Browse files Browse the repository at this point in the history
 - Fixed a bug related to grabbing WorldSpawn
  • Loading branch information
LeadKiller committed Sep 5, 2019
1 parent 9110fa4 commit bc24edd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified plugins/TF2Sandbox-PhysicsGun.smx
Binary file not shown.
4 changes: 2 additions & 2 deletions scripting/TF2Sandbox-PhysicsGun.sp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#define DEBUG

#define PLUGIN_AUTHOR "BattlefieldDuck"
#define PLUGIN_VERSION "5.3"
#define PLUGIN_VERSION "5.4"

#include <sourcemod>
#include <sdkhooks>
Expand Down Expand Up @@ -341,7 +341,7 @@ float[] GetPointAimPosition(float pos[3], float angles[3], float maxtracedistanc
if(TR_DidHit(trace))
{
int entity = TR_GetEntityIndex(trace);
if ((Build_ReturnEntityOwner(entity) == client || CheckCommandAccess(client, "sm_admin", ADMFLAG_GENERIC)))
if (entity > 0 && (Build_ReturnEntityOwner(entity) == client || CheckCommandAccess(client, "sm_admin", ADMFLAG_GENERIC)))
{
g_iAimingEntityRef[client] = EntIndexToEntRef(entity);

Expand Down

0 comments on commit bc24edd

Please sign in to comment.