Fix a bug in tangible.build, and add testing code
This commit is contained in:
@@ -292,6 +292,7 @@ LuaDefine(tangible_build, "config",
|
||||
LS.rawset(mt, "__index", classtab);
|
||||
|
||||
tan->anim_queue_.clear(state);
|
||||
tan->update_plane_item();
|
||||
|
||||
return LS.result();
|
||||
}
|
||||
@@ -831,7 +832,6 @@ LuaDefine(pprint, "obj1, obj2, ...",
|
||||
(*ostream) << std::endl;
|
||||
}
|
||||
return LS.result();
|
||||
|
||||
}
|
||||
|
||||
LuaDefine(pprintx, "options",
|
||||
|
||||
@@ -42,3 +42,11 @@ function login.cb_p123_nopredict(actor, place, dialog)
|
||||
print(3)
|
||||
end
|
||||
|
||||
function gosomewhere()
|
||||
local a = tangible.actor()
|
||||
tangible.animate(a, {plane="somewhere"})
|
||||
end
|
||||
|
||||
function mkt()
|
||||
return tangible.build{class="login", animstate={plane="somewhere", xyz={1,2,3}}}
|
||||
end
|
||||
Reference in New Issue
Block a user