fix tpt.message_box, fix compiling error
This commit is contained in:
parent
e53f2bf0b5
commit
67e1213905
@ -1739,7 +1739,7 @@ int luatpt_message_box(lua_State* l)
|
|||||||
{
|
{
|
||||||
std::string title = std::string(luaL_optstring(l, 1, "Title"));
|
std::string title = std::string(luaL_optstring(l, 1, "Title"));
|
||||||
std::string message = std::string(luaL_optstring(l, 2, "Message"));
|
std::string message = std::string(luaL_optstring(l, 2, "Message"));
|
||||||
int large = luaL_optint(l, 1, 0);
|
int large = luaL_optint(l, 3, 0);
|
||||||
new InformationMessage(title, message, large);
|
new InformationMessage(title, message, large);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -130,13 +130,13 @@ int Element_STKM::run_stickman(playerst* playerp, UPDATE_FUNC_ARGS) {
|
|||||||
float rbx = gvx;
|
float rbx = gvx;
|
||||||
float rby = gvy;
|
float rby = gvy;
|
||||||
bool rbLowGrav = false;
|
bool rbLowGrav = false;
|
||||||
float tmp = fmaxf(fabsf(rbx), fabsf(rby));
|
float tmp = fabsf(rbx) > fabsf(rby)?fabsf(rbx):fabsf(rby);
|
||||||
if (tmp < 0.001f)
|
if (tmp < 0.001f)
|
||||||
{
|
{
|
||||||
rbLowGrav = true;
|
rbLowGrav = true;
|
||||||
rbx = -parts[i].vx;
|
rbx = -parts[i].vx;
|
||||||
rby = -parts[i].vy;
|
rby = -parts[i].vy;
|
||||||
tmp = fmaxf(fabsf(rbx), fabsf(rby));
|
tmp = fabsf(rbx) > fabsf(rby)?fabsf(rbx):fabsf(rby);
|
||||||
}
|
}
|
||||||
if (tmp < 0.001f)
|
if (tmp < 0.001f)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user