hedgewars/GSHandlers.inc
changeset 3572 c968aacba708
parent 3571 5c99b239340e
child 3578 00aac66147c8
--- 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;