Skip to content

Commit

Permalink
Remove the lua_State* parameter from lua_callback
Browse files Browse the repository at this point in the history
Wasn't used anyway.
  • Loading branch information
BevapDin committed Aug 19, 2015
1 parent bda18c8 commit 0502785
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/catalua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ int call_lua(std::string tocall)
}


void lua_callback(lua_State *, const char *callback_name)
void lua_callback(const char *callback_name)
{
call_lua(std::string("mod_callback(\"") + std::string(callback_name) + "\")");
}
Expand Down
2 changes: 1 addition & 1 deletion src/catalua.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ int lua_mapgen(map *m, std::string terrain_type, mapgendata md, int t, float d,
/**
* Execute a callback that can be overriden by all mods.
*/
void lua_callback(lua_State *L, const char *callback_name);
void lua_callback(const char *callback_name);

/**
* Load the main file of a lua mod.
Expand Down
2 changes: 1 addition & 1 deletion src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ bool game::do_turn()
calendar::turn.seconds() == 0) { // Midnight!
overmap_buffer.process_mongroups();
#ifdef LUA
lua_callback(lua_state, "on_day_passed");
lua_callback("on_day_passed");
#endif
}

Expand Down

0 comments on commit 0502785

Please sign in to comment.