From 098f27863c2564e23a98867e95f4c019750d97d3 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 19 Mar 2021 20:32:28 +0100 Subject: [PATCH] clarification: at_dict is deprecated but has a conversion. --- src/attributes/attributes.c | 2 -- src/helpers.c | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/attributes/attributes.c b/src/attributes/attributes.c index d8fe35833..00aca5757 100644 --- a/src/attributes/attributes.c +++ b/src/attributes/attributes.c @@ -14,7 +14,6 @@ #include "stealth.h" #include "magic.h" #include "movement.h" -#include "dict.h" #include "otherfaction.h" #include "overrideroads.h" #include "racename.h" @@ -198,7 +197,6 @@ void register_attributes(void) at_deprecate("gm", a_readint); at_deprecate("guard", a_readint); /* used to contain guard-flags (v3.10.0-259-g8597e8b) */ at_register(&at_stealth); - at_register(&at_dict); at_register(&at_unitdissolve); at_register(&at_observer); at_register(&at_overrideroads); diff --git a/src/helpers.c b/src/helpers.c index b6f76abf5..d90c2dae2 100644 --- a/src/helpers.c +++ b/src/helpers.c @@ -2,6 +2,8 @@ #include #endif +#include "attributes/dict.h" + #include "helpers.h" #include "vortex.h" #include "alchemy.h" @@ -358,6 +360,7 @@ void register_tolua_helpers(void) { tt_register(&tt_caldera); at_register(&at_direction); + at_register(&at_dict); /* deprecated, but has an upgrade path */ at_deprecate("lcbuilding", building_action_read); callbacks.equip_unit = lua_equipunit;