fixed speeding bug in homing system
This commit is contained in:
parent
f20ec1e42e
commit
046b534f3a
|
@ -3,6 +3,7 @@ D2X-Rebirth Changelog
|
||||||
20070514
|
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
|
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
|
20070512
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -1594,7 +1594,7 @@ void Laser_do_weapon_sequence(object *obj)
|
||||||
if (Weapon_info[obj->id].render_type == WEAPON_RENDER_POLYMODEL)
|
if (Weapon_info[obj->id].render_type == WEAPON_RENDER_POLYMODEL)
|
||||||
turn_radius = 0x0014 * F1_0; // homing missiles, mega missiles
|
turn_radius = 0x0014 * F1_0; // homing missiles, mega missiles
|
||||||
else
|
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);
|
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
|
// homing missile speeds : insane - 0x005a
|
||||||
max_speed = Weapon_info[obj->id].speed[Difficulty_level];
|
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);
|
speed += fixmul(max_speed, FrameTime/2);
|
||||||
if (speed > max_speed)
|
if (speed > max_speed)
|
||||||
|
|
Loading…
Reference in a new issue