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);
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue