summaryrefslogtreecommitdiff
path: root/src/mg_decoration.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-03-31 23:27:19 -0400
committerkwolekr <kwolekr@minetest.net>2015-03-31 23:27:58 -0400
commit337e79c656a12bcf0dac4b25d5f0e021188e383a (patch)
treea8c15908fd5c2fe6e96cbe0324b664e201c58989 /src/mg_decoration.h
parentd1d5618bb829127d8e138f354bf5a4f23852df59 (diff)
downloadminetest-337e79c656a12bcf0dac4b25d5f0e021188e383a.tar.gz
minetest-337e79c656a12bcf0dac4b25d5f0e021188e383a.tar.bz2
minetest-337e79c656a12bcf0dac4b25d5f0e021188e383a.zip
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
Diffstat (limited to 'src/mg_decoration.h')
-rw-r--r--src/mg_decoration.h2
1 files changed, 1 insertions, 1 deletions
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: