From 84fb22aafe5ccd4d6b15d5f97c595b87296e3494 Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 30 Mar 2013 04:31:09 +0000 Subject: [PATCH] Simplify logic for robot to drop proximity bomb --- main/multibot.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/main/multibot.c b/main/multibot.c index a37573b37..f5f279b09 100644 --- a/main/multibot.c +++ b/main/multibot.c @@ -756,17 +756,14 @@ multi_do_robot_fire(char *buf) { // Drop proximity bombs vm_vec_add(&gun_point, &Objects[botnum].pos, &fire); + Laser_create_new_easy( &fire, &gun_point, botnum, PROXIMITY_ID, 1); } else { calc_gun_point(&gun_point, &Objects[botnum], gun_num); - } - robptr = &Robot_info[Objects[botnum].id]; - - if (gun_num == -1) - Laser_create_new_easy( &fire, &gun_point, botnum, PROXIMITY_ID, 1); - else + robptr = &Robot_info[Objects[botnum].id]; Laser_create_new_easy( &fire, &gun_point, botnum, robptr->weapon_type, 1); + } } int