diff --git a/TileEngine/physics.cpp b/TileEngine/physics.cpp index 58908e02..ba464ee1 100644 --- a/TileEngine/physics.cpp +++ b/TileEngine/physics.cpp @@ -2137,10 +2137,14 @@ FLOAT CalculateForceFromRange( INT16 sRange, FLOAT dDegrees ) INT32 sSrcGridNo, sDestGridNo; INT32 sFinalGridNo; + // WANNE: This does not work, so I reverted back! // OK, use a fake gridno, find the new gridno based on range, use height of merc, end height of ground, // 45 degrees - sSrcGridNo = WORLD_COLS/2+WORLD_COLS*WORLD_ROWS/6; - sDestGridNo = sSrcGridNo + ( sRange * WORLD_COLS ); + //sSrcGridNo = WORLD_COLS/2+WORLD_COLS*WORLD_ROWS/6; + //sDestGridNo = sSrcGridNo + ( sRange * WORLD_COLS ); + + sSrcGridNo = 4408; + sDestGridNo = 4408 + ( sRange * WORLD_COLS ); // Use a grenade objecttype CreateItem( HAND_GRENADE, 100, &gTempObject );