From 53fb22f981473096e9adc3a76f2d9e8fa7b871de Mon Sep 17 00:00:00 2001 From: Sveinung Kvilhaugsvik Date: Mon, 12 Apr 2021 10:48:58 +0200 Subject: [PATCH] Document what 'disabled' means in an enabler. See osdn #41992 --- common/actions.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/actions.h b/common/actions.h index f416c64cb1..9c27f627a7 100644 --- a/common/actions.h +++ b/common/actions.h @@ -428,10 +428,13 @@ struct action struct action_enabler { - bool disabled; action_id action; struct requirement_vector actor_reqs; struct requirement_vector target_reqs; + + /* Only relevant for ruledit and other rulesave users. Indicates that + * this action enabler is deleted and shouldn't be saved. */ + bool disabled; }; #define enabler_get_action(_enabler_) action_by_number(_enabler_->action) -- 2.30.2