Skip to content

Commit

Permalink
add a delay after using scroll.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentarctagon committed Jan 28, 2024
1 parent dcde7c5 commit 9d59ad2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/scripting/game_lua_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4650,10 +4650,16 @@ int game_lua_kernel::intf_replace_schedule(lua_State * L)

int game_lua_kernel::intf_scroll(lua_State * L)
{
int x = luaL_checkinteger(L, 1), y = luaL_checkinteger(L, 2);
int x = luaL_checkinteger(L, 1);
int y = luaL_checkinteger(L, 2);

if (game_display_) {
game_display_->scroll(x, y, true);

lua_remove(L, 1);
lua_remove(L, 1);
lua_push(L, 25);
intf_delay(L);
}

return 0;
Expand Down

0 comments on commit 9d59ad2

Please sign in to comment.