forked from github/server
Bugfix in Berechnung von neuem Entertainment-Code.
This commit is contained in:
parent
55016e8a02
commit
b89eed2f2a
|
@ -2025,10 +2025,10 @@ int entertain_cmd(unit * u, struct order *ord, econ_request **io_req)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
wants = u->number * (entertainbase + effskill(u, SK_ENTERTAINMENT, NULL) * entertainperlevel);
|
wants = getuint();
|
||||||
max_e = getuint();
|
max_e = u->number * (entertainbase + effskill(u, SK_ENTERTAINMENT, NULL) * entertainperlevel);
|
||||||
if (max_e != 0 && wants > max_e) {
|
if (wants > 0 && wants < max_e) {
|
||||||
wants = max_e;
|
max_e = wants;
|
||||||
}
|
}
|
||||||
if (max_e > 0) {
|
if (max_e > 0) {
|
||||||
add_request(req++, ECON_ENTERTAIN, u, ord, max_e);
|
add_request(req++, ECON_ENTERTAIN, u, ord, max_e);
|
||||||
|
|
Loading…
Reference in New Issue