Make autoload reset deaths on LevelInit

This commit is contained in:
BenCat07 2019-07-26 12:44:18 +02:00
parent 437155974f
commit fd2c9827e1

View File

@ -141,12 +141,12 @@ std::vector<std::string> config_list(std::string in)
globfree(&results);
return config_vec;
}
std::string blacklist;
static std::string blacklist;
static int deaths = 0;
void on_killed_by(int userid)
{
if (enable_reload)
{
static int deaths = 0;
// Should we load yet?
bool should_load = false;
@ -885,6 +885,7 @@ void init()
void level_init()
{
deaths = 0;
level_init_timer.update();
}