merge
authorkoda
Sun, 27 Jun 2010 18:34:47 +0200
changeset 3575 f7a7ca7270cf
parent 3574 78fc6e61570b (current diff)
parent 3572 c968aacba708 (diff)
child 3576 d85bdd5dc835
merge
--- a/hedgewars/GSHandlers.inc	Sun Jun 27 18:34:17 2010 +0200
+++ b/hedgewars/GSHandlers.inc	Sun Jun 27 18:34:47 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;