mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 05:30:23 +02:00
fix rx/ry arguments to toolBox
This commit is contained in:
@@ -709,8 +709,8 @@ static int toolBox(lua_State *L)
|
|||||||
int tool = luaL_optint(L,5,0);
|
int tool = luaL_optint(L,5,0);
|
||||||
float strength = luaL_optnumber(L,6,1.0f);
|
float strength = luaL_optnumber(L,6,1.0f);
|
||||||
int brushID = luaL_optint(L,7,BRUSH_CIRCLE);
|
int brushID = luaL_optint(L,7,BRUSH_CIRCLE);
|
||||||
int rx = luaL_optint(L,5,0);
|
int rx = luaL_optint(L,8,0);
|
||||||
int ry = luaL_optint(L,6,0);
|
int ry = luaL_optint(L,9,0);
|
||||||
auto *lsi = GetLSI();
|
auto *lsi = GetLSI();
|
||||||
Brush *brush = lsi->gameModel->GetBrushByID(brushID);
|
Brush *brush = lsi->gameModel->GetBrushByID(brushID);
|
||||||
if (!brush)
|
if (!brush)
|
||||||
|
Reference in New Issue
Block a user