mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
- Fixed a bug with grenade and item throwing range that was introduced in revision 3488
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3522 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2137,10 +2137,14 @@ FLOAT CalculateForceFromRange( INT16 sRange, FLOAT dDegrees )
|
|||||||
INT32 sSrcGridNo, sDestGridNo;
|
INT32 sSrcGridNo, sDestGridNo;
|
||||||
INT32 sFinalGridNo;
|
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,
|
// OK, use a fake gridno, find the new gridno based on range, use height of merc, end height of ground,
|
||||||
// 45 degrees
|
// 45 degrees
|
||||||
sSrcGridNo = WORLD_COLS/2+WORLD_COLS*WORLD_ROWS/6;
|
//sSrcGridNo = WORLD_COLS/2+WORLD_COLS*WORLD_ROWS/6;
|
||||||
sDestGridNo = sSrcGridNo + ( sRange * WORLD_COLS );
|
//sDestGridNo = sSrcGridNo + ( sRange * WORLD_COLS );
|
||||||
|
|
||||||
|
sSrcGridNo = 4408;
|
||||||
|
sDestGridNo = 4408 + ( sRange * WORLD_COLS );
|
||||||
|
|
||||||
// Use a grenade objecttype
|
// Use a grenade objecttype
|
||||||
CreateItem( HAND_GRENADE, 100, &gTempObject );
|
CreateItem( HAND_GRENADE, 100, &gTempObject );
|
||||||
|
|||||||
Reference in New Issue
Block a user