forked from github/server
set_skill aus mapper entfernt
This commit is contained in:
parent
c1c70b47ec
commit
4a9abea1d8
|
@ -299,11 +299,8 @@ change_level(unit * u, skill_t sk, int bylevel)
|
|||
{
|
||||
skill * sv = get_skill(u, sk);
|
||||
assert(bylevel>0);
|
||||
if (sv==0) set_skill(u, sk, bylevel, 0, true);
|
||||
else {
|
||||
sv->level = (unsigned char)(sv->level+bylevel);
|
||||
sv->learning = 0;
|
||||
}
|
||||
if (sv==0) sv = add_skill(u, sk);
|
||||
sk_set(sv, sv->level+bylevel);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue