triggerbox: remove unused local variable
This commit is contained in:
@@ -2547,17 +2547,13 @@ TriggerBox::determine_next_trigger (uint32_t current)
|
||||
* random number and the probability setting)
|
||||
*/
|
||||
|
||||
int which_follow_action = 0;
|
||||
|
||||
int r = _pcg.rand (100); // 0 .. 99
|
||||
Trigger::FollowAction fa;
|
||||
|
||||
if (r >= all_triggers[current]->follow_action_probability()) {
|
||||
fa = all_triggers[current]->follow_action (0);
|
||||
which_follow_action = 0;
|
||||
} else {
|
||||
fa = all_triggers[current]->follow_action (1);
|
||||
which_follow_action = 1;
|
||||
}
|
||||
|
||||
/* first switch: deal with the "special" cases where we either do
|
||||
|
||||
Reference in New Issue
Block a user