From 337e79c656a12bcf0dac4b25d5f0e021188e383a Mon Sep 17 00:00:00 2001 From: kwolekr Date: Tue, 31 Mar 2015 23:27:19 -0400 Subject: ObjDefManager, Mapgen SAPI: Huge refactoring - General code cleanup - Unified object creation and loading - Specifying objects in APIs is now orthogonal (i.e. anything can take an ID, name string, or the raw table definition (and automatically registers if present --- src/mg_decoration.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mg_decoration.h') diff --git a/src/mg_decoration.h b/src/mg_decoration.h index 3b809b8d4..c92cfe4dc 100644 --- a/src/mg_decoration.h +++ b/src/mg_decoration.h @@ -131,7 +131,7 @@ public: return "decoration"; } - Decoration *create(int type) + static Decoration *create(DecorationType type) { switch (type) { case DECO_SIMPLE: -- cgit v1.2.3