shithub: choc

Download patch

ref: 687ff30bcc7ae07e8dcc7928598aa0ea268201bd
parent: 0d531f6108e585d6ea718d8ea4aef9a7aa5b9c72
author: Samuel Villareal <[email protected]>
date: Sat Sep 18 00:55:20 EDT 2010

+ Fixed a fluke in A_TeleportBeacon

Subversion-branch: /branches/strife-branch
Subversion-revision: 2104

--- a/src/strife/p_enemy.c
+++ b/src/strife/p_enemy.c
@@ -3004,8 +3004,8 @@
     P_SetMobjState(mobj, mobj->info->seestate);
     mobj->angle = actor->angle;
 
-    fog_x = FixedMul(20*FRACUNIT, finecosine[actor->angle>>ANGLETOFINESHIFT] + mobj->x);
-    fog_y = FixedMul(20*FRACUNIT, finesine[actor->angle>>ANGLETOFINESHIFT] + mobj->y);
+    fog_x = mobj->x + FixedMul(20*FRACUNIT, finecosine[actor->angle>>ANGLETOFINESHIFT]);
+    fog_y = mobj->y + FixedMul(20*FRACUNIT, finesine[actor->angle>>ANGLETOFINESHIFT]);
 
     fog = P_SpawnMobj(fog_x, fog_y, mobj->z, MT_TFOG);
     S_StartSound(fog, sfx_telept);