forked from github/server
fix auto-study plus-equal typo
This commit is contained in:
parent
60366ccb06
commit
9b64269b6d
|
@ -512,7 +512,7 @@ static double study_speedup(unit * u, skill_t s, study_rule_t rule)
|
|||
if (rule == STUDY_AUTOTEACH) {
|
||||
for (i = 0; i != u->skill_size; ++i) {
|
||||
skill *sv = u->skills + i;
|
||||
learnweeks = +(sv->level * (sv->level + 1) / 2.0);
|
||||
learnweeks += (sv->level * (sv->level + 1) / 2.0);
|
||||
}
|
||||
if (learnweeks < turn / 2) {
|
||||
return 2.0;
|
||||
|
|
Loading…
Reference in New Issue