From 88ee840e680c35386f6d202518e9dc432f38d0ff Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 8 Apr 2021 15:05:13 +0300 Subject: [PATCH 48/50] Document that get_preferred_pillage() has list of extra causes too Comment for enum extra cause now tells someone adding new cause types to also update get_preferred_pillage() to reflect the added type. See osdn #41949 Signed-off-by: Marko Lindqvist --- common/fc_types.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/fc_types.h b/common/fc_types.h index 1d7ae5c5e6..b99d5dc859 100644 --- a/common/fc_types.h +++ b/common/fc_types.h @@ -944,7 +944,9 @@ typedef int server_setting_id; #include "specenum_gen.h" #define ECAT_NONE ECAT_COUNT -/* Used in the network protocol. */ +/* Used in the network protocol. + * When adding new cause types here, consider also adding them to the + * order of pillage preference in get_preferred_pillage() */ #define SPECENUM_NAME extra_cause #define SPECENUM_VALUE0 EC_IRRIGATION #define SPECENUM_VALUE0NAME "Irrigation" -- 2.30.2