From e5650bb54917ead2dccac9b46dfa1a00cd737694 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 25 Nov 2011 17:00:50 +0200 Subject: Make liquid_alternative_* to be strings --- src/scriptapi.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/scriptapi.cpp') diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index f19e98893..6f16c72e7 100644 --- a/src/scriptapi.cpp +++ b/src/scriptapi.cpp @@ -609,11 +609,11 @@ static int l_register_node(lua_State *L) f.liquid_type = (LiquidType)getenumfield(L, table0, "liquidtype", es_LiquidType, LIQUID_NONE); // If the content is liquid, this is the flowing version of the liquid. - // TODO: as name - // content_t liquid_alternative_flowing; + getstringfield(L, table0, "liquid_alternative_flowing", + f.liquid_alternative_flowing); // If the content is liquid, this is the source version of the liquid. - // TODO: as name - // content_t liquid_alternative_source; + getstringfield(L, table0, "liquid_alternative_source", + f.liquid_alternative_source); // Viscosity for fluid flow, ranging from 1 to 7, with // 1 giving almost instantaneous propagation and 7 being // the slowest possible -- cgit v1.2.3