Commit 2e37aeba authored by salix5's avatar salix5

GetOriginalLeftScale

parent ce3d1169
......@@ -132,10 +132,7 @@ int32 scriptlib::card_get_origin_lscale(lua_State *L) {
check_param_count(L, 1);
check_param(L, PARAM_TYPE_CARD, 1);
card* pcard = *(card**) lua_touserdata(L, 1);
if(pcard->status & STATUS_NO_LEVEL)
lua_pushinteger(L, 0);
else
lua_pushinteger(L, pcard->data.lscale);
lua_pushinteger(L, pcard->data.lscale);
return 1;
}
int32 scriptlib::card_get_rscale(lua_State *L) {
......@@ -149,10 +146,7 @@ int32 scriptlib::card_get_origin_rscale(lua_State *L) {
check_param_count(L, 1);
check_param(L, PARAM_TYPE_CARD, 1);
card* pcard = *(card**) lua_touserdata(L, 1);
if(pcard->status & STATUS_NO_LEVEL)
lua_pushinteger(L, 0);
else
lua_pushinteger(L, pcard->data.rscale);
lua_pushinteger(L, pcard->data.rscale);
return 1;
}
int32 scriptlib::card_get_attribute(lua_State *L) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment