mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 15:15:40 +00:00
Fix: the plugin version of wesnoth.delay() didn't wait with --nogui
CVideo::delay() is a no-op when --nogui is used.
This commit is contained in:
parent
1848c8c919
commit
9811ad334b
@ -49,12 +49,13 @@
|
||||
|
||||
#include "utils/functional.hpp"
|
||||
#include <boost/range/adaptors.hpp>
|
||||
#include "video.hpp"
|
||||
#include <SDL.h>
|
||||
|
||||
#include "lua/lauxlib.h"
|
||||
#include "lua/lua.h"
|
||||
#include "lua/luaconf.h"
|
||||
|
||||
class CVideo;
|
||||
struct lua_State;
|
||||
|
||||
static lg::log_domain log_scripting_lua("scripting/lua");
|
||||
@ -93,7 +94,7 @@ static int intf_describe_plugins(lua_State * L)
|
||||
static int intf_delay(lua_State* L)
|
||||
{
|
||||
unsigned int delay = static_cast<unsigned int>(luaL_checkint(L, 1));
|
||||
CVideo::delay(delay);
|
||||
SDL_Delay(delay);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user