set_skill aus mapper entfernt

This commit is contained in:
Enno Rehling 2002-02-24 10:23:02 +00:00
parent c1c70b47ec
commit 4a9abea1d8
1 changed files with 2 additions and 5 deletions

View File

@ -299,11 +299,8 @@ change_level(unit * u, skill_t sk, int bylevel)
{ {
skill * sv = get_skill(u, sk); skill * sv = get_skill(u, sk);
assert(bylevel>0); assert(bylevel>0);
if (sv==0) set_skill(u, sk, bylevel, 0, true); if (sv==0) sv = add_skill(u, sk);
else { sk_set(sv, sv->level+bylevel);
sv->level = (unsigned char)(sv->level+bylevel);
sv->learning = 0;
}
} }
#endif #endif