portal: I accidentally flipped the exit angle in last commit
authorsheepluva
Sun, 27 Jun 2010 18:17:34 +0200
changeset 3572 c968aacba708
parent 3571 5c99b239340e
child 3575 f7a7ca7270cf
portal: I accidentally flipped the exit angle in last commit
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Sun Jun 27 05:32:11 2010 +0200
+++ b/hedgewars/GSHandlers.inc	Sun Jun 27 18:17:34 2010 +0200
@@ -3345,8 +3345,8 @@
             ny.isNegative := not ny.isNegative;
             end;
 //AddFileLog('poffs:'+cstr(poffs)+' noffs:'+cstr(noffs)+' pspeed:'+cstr(pspeed)+' nspeed:'+cstr(nspeed));
-        iterator^.dX := -pspeed * conPortal^.dX + nspeed * nx;
-        iterator^.dY := -pspeed * conPortal^.dY + nspeed * ny;
+        iterator^.dX := -pspeed * conPortal^.dX - nspeed * nx;
+        iterator^.dY := -pspeed * conPortal^.dY - nspeed * ny;
         if iterator^.Kind = gtCake then
             poffs := poffs * _0_5;
         iterator^.X := conPortal^.X + poffs * conPortal^.dX + noffs * nx;