equal
deleted
inserted
replaced
1219 *) |
1219 *) |
1220 function WorldWrap(var Gear: PGear): boolean; |
1220 function WorldWrap(var Gear: PGear): boolean; |
1221 var tdx: hwFloat; |
1221 var tdx: hwFloat; |
1222 begin |
1222 begin |
1223 WorldWrap:= false; |
1223 WorldWrap:= false; |
1224 // for playing around since it isn't hooked up yet |
|
1225 //WorldEdge:= weBounce; |
|
1226 if WorldEdge = weNone then exit(false); |
1224 if WorldEdge = weNone then exit(false); |
1227 if (hwRound(Gear^.X)-Gear^.Radius < leftX) or |
1225 if (hwRound(Gear^.X)-Gear^.Radius < leftX) or |
1228 (hwRound(Gear^.X)+Gear^.Radius > rightX) then |
1226 (hwRound(Gear^.X)+Gear^.Radius > rightX) then |
1229 begin |
1227 begin |
1230 if WorldEdge = weWrap then |
1228 if WorldEdge = weWrap then |