Fix achievement progression only updating after opening and closing wesnoth.
This commit is contained in:
parent
1d31c674c9
commit
d35cf620ab
1 changed files with 2 additions and 0 deletions
|
@ -3216,6 +3216,8 @@ int game_lua_kernel::intf_progress_achievement(lua_State *L)
|
|||
if(progress >= achieve.max_progress_) {
|
||||
intf_set_achievement(L);
|
||||
achieve.current_progress_ = -1;
|
||||
} else {
|
||||
achieve.current_progress_ = progress;
|
||||
}
|
||||
lua_pushinteger(L, progress);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue