Fixed cWorld:TryGetHeight() API.
This commit is contained in:
parent
e165da946e
commit
cfd6875c86
@ -906,8 +906,12 @@ static int tolua_cWorld_TryGetHeight(lua_State * tolua_S)
|
|||||||
{
|
{
|
||||||
int Height = 0;
|
int Height = 0;
|
||||||
bool res = self->TryGetHeight(BlockX, BlockZ, Height);
|
bool res = self->TryGetHeight(BlockX, BlockZ, Height);
|
||||||
tolua_pushnumber(tolua_S, Height);
|
|
||||||
tolua_pushboolean(tolua_S, res ? 1 : 0);
|
tolua_pushboolean(tolua_S, res ? 1 : 0);
|
||||||
|
if (res)
|
||||||
|
{
|
||||||
|
tolua_pushnumber(tolua_S, Height);
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user