Commit 2e37aeba authored by salix5's avatar salix5

GetOriginalLeftScale

parent ce3d1169
...@@ -132,9 +132,6 @@ int32 scriptlib::card_get_origin_lscale(lua_State *L) { ...@@ -132,9 +132,6 @@ int32 scriptlib::card_get_origin_lscale(lua_State *L) {
check_param_count(L, 1); check_param_count(L, 1);
check_param(L, PARAM_TYPE_CARD, 1); check_param(L, PARAM_TYPE_CARD, 1);
card* pcard = *(card**) lua_touserdata(L, 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; return 1;
} }
...@@ -149,9 +146,6 @@ int32 scriptlib::card_get_origin_rscale(lua_State *L) { ...@@ -149,9 +146,6 @@ int32 scriptlib::card_get_origin_rscale(lua_State *L) {
check_param_count(L, 1); check_param_count(L, 1);
check_param(L, PARAM_TYPE_CARD, 1); check_param(L, PARAM_TYPE_CARD, 1);
card* pcard = *(card**) lua_touserdata(L, 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; return 1;
} }
......
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