Reverted 2010-08-29T13:24:06Z!guillaume.melquiond@gmail.com,

...since the animation cache is no longer meant to be filled from WML.
This commit is contained in:
Guillaume Melquiond 2010-08-29 20:50:51 +00:00
parent 6a99834173
commit f95ea39cf3
2 changed files with 0 additions and 22 deletions

View file

@ -2999,27 +2999,6 @@ void LuaKernel::save_game(config &cfg)
}
}
/**
* Executes the game_events.on_missing_anim function and passes the
* corresponding.
*/
config LuaKernel::get_animation(std::string const &name)
{
lua_State *L = mState;
config res;
if (!luaW_getglobal(L, "wesnoth", "game_events", "on_missing_anim", NULL))
return res;
lua_pushstring(L, name.c_str());
if (!luaW_pcall(L, 1, 1, false))
return res;
luaW_toconfig(L, -1, res);
lua_pop(L, 1);
return res;
}
LuaKernel::~LuaKernel()
{
lua_close(mState);

View file

@ -38,7 +38,6 @@ public:
void initialize();
void save_game(config &);
void load_game();
config get_animation(std::string const &);
void set_wml_action(std::string const &, game_events::action_handler);
bool run_wml_action(std::string const &, vconfig const &,
game_events::queued_event const &);