Remove useless buddy bot checks
These are only hit after the condition is assumed true.
This commit is contained in:
parent
55063abade
commit
bf8d29b348
|
@ -254,7 +254,7 @@ static int ok_for_buddy_to_talk(void)
|
|||
if (Buddy_allowed_to_talk)
|
||||
return 1;
|
||||
|
||||
if ((Objects[Buddy_objnum].type == OBJ_ROBOT) && (Buddy_objnum <= Highest_object_index) && !Robot_info[get_robot_id(&Objects[Buddy_objnum])].companion) {
|
||||
if (!Robot_info[get_robot_id(&Objects[Buddy_objnum])].companion) {
|
||||
for (objnum_t i=object_first;; i++)
|
||||
{
|
||||
if (!(i<=Highest_object_index))
|
||||
|
|
Loading…
Reference in a new issue