From 046b534f3a8c0a10fac114db5ee5171d0c8aac96 Mon Sep 17 00:00:00 2001 From: zicodxx <> Date: Mon, 14 May 2007 13:45:11 +0000 Subject: [PATCH] fixed speeding bug in homing system --- CHANGELOG.txt | 1 + main/laser.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 5a278e44c..4df3f8c11 100755 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -3,6 +3,7 @@ D2X-Rebirth Changelog 20070514 -------- SConstruct, arch/sdl/init.c, arch/sdl/joydefs.c, arch/sdl/mouse.c, arch/include/mouse.h, include/error.h, main/config.h main/game.c, main/gamecntl.c, main/inferno.c, main/kconfig.c, main/kconfig.h, main/newmenu.c, main/newmenu.h, main/playsave.c, main/text.h: Added config field to map a Mouse Axis/Wheel to cycle Primary and Secondary weapons; lots of controls-related code cleaning +main/laser.c: fixed speeding bug in homing system 20070512 -------- diff --git a/main/laser.c b/main/laser.c index b78018bee..d8005751a 100755 --- a/main/laser.c +++ b/main/laser.c @@ -1594,7 +1594,7 @@ void Laser_do_weapon_sequence(object *obj) if (Weapon_info[obj->id].render_type == WEAPON_RENDER_POLYMODEL) turn_radius = 0x0014 * F1_0; // homing missiles, mega missiles else - turn_radius = 0x0020 * F1_0; // smart missile/bomb blobs + turn_radius = 0x0030 * F1_0; // smart missile/bomb blobs vm_vec_sub(&vector_to_object, &Objects[track_goal].pos, &obj->pos); @@ -1606,7 +1606,7 @@ void Laser_do_weapon_sequence(object *obj) // homing missile speeds : insane - 0x005a max_speed = Weapon_info[obj->id].speed[Difficulty_level]; - if (speed + F1_0 < max_speed) + if (speed < max_speed) { speed += fixmul(max_speed, FrameTime/2); if (speed > max_speed)