Fixed potential player lag issue when "drugged" (bug 5217, r=asherkin).
authorFlaminSarge <laftrykung@yahoo.com>
Sun Mar 04 14:16:58 2012 -0500 (2012-03-04)
changeset 3465231b30761f74
parent 3464 119b9dd6fdcd
child 3467 1b95c50649c2
Fixed potential player lag issue when "drugged" (bug 5217, r=asherkin).
plugins/funcommands/drug.sp
     1.1 --- a/plugins/funcommands/drug.sp	Sun Mar 04 14:13:38 2012 -0500
     1.2 +++ b/plugins/funcommands/drug.sp	Sun Mar 04 14:16:58 2012 -0500
     1.3 @@ -43,14 +43,12 @@
     1.4  {
     1.5  	KillDrugTimer(client);
     1.6  	
     1.7 -	new Float:pos[3];
     1.8 -	GetClientAbsOrigin(client, pos);
     1.9  	new Float:angs[3];
    1.10  	GetClientEyeAngles(client, angs);
    1.11  	
    1.12  	angs[2] = 0.0;
    1.13  	
    1.14 -	TeleportEntity(client, pos, angs, NULL_VECTOR);	
    1.15 +	TeleportEntity(client, NULL_VECTOR, angs, NULL_VECTOR);	
    1.16  	
    1.17  	new clients[2];
    1.18  	clients[0] = client;	
    1.19 @@ -144,15 +142,12 @@
    1.20  		return Plugin_Handled;
    1.21  	}
    1.22  	
    1.23 -	new Float:pos[3];
    1.24 -	GetClientAbsOrigin(client, pos);
    1.25 -	
    1.26  	new Float:angs[3];
    1.27  	GetClientEyeAngles(client, angs);
    1.28  	
    1.29  	angs[2] = g_DrugAngles[GetRandomInt(0,100) % 20];
    1.30  	
    1.31 -	TeleportEntity(client, pos, angs, NULL_VECTOR);
    1.32 +	TeleportEntity(client, NULL_VECTOR, angs, NULL_VECTOR);
    1.33  	
    1.34  	new clients[2];
    1.35  	clients[0] = client;