forked from github/server
fix verkaufe alles
This commit is contained in:
parent
62a97407af
commit
5b4487db03
|
@ -241,6 +241,7 @@ expandorders(region * r, request * requests)
|
||||||
/* ------------------------------------------------------------- */
|
/* ------------------------------------------------------------- */
|
||||||
|
|
||||||
#if SKILLPOINTS == 0
|
#if SKILLPOINTS == 0
|
||||||
|
|
||||||
static void
|
static void
|
||||||
change_level(unit * u, skill_t sk, int bylevel)
|
change_level(unit * u, skill_t sk, int bylevel)
|
||||||
{
|
{
|
||||||
|
@ -2339,7 +2340,7 @@ sell(region * r, unit * u, request ** sellorders, const char * cmd)
|
||||||
|
|
||||||
s = getstrtoken();
|
s = getstrtoken();
|
||||||
if (findparam(s, u->faction->locale) == P_ANY) {
|
if (findparam(s, u->faction->locale) == P_ANY) {
|
||||||
n = (rpeasants(r) - rpeasants(r) / RECRUITFRACTION) / TRADE_FRACTION;
|
n = rpeasants(r) / TRADE_FRACTION;
|
||||||
if (rterrain(r) == T_DESERT && buildingtype_exists(r, &bt_caravan))
|
if (rterrain(r) == T_DESERT && buildingtype_exists(r, &bt_caravan))
|
||||||
n *= 2;
|
n *= 2;
|
||||||
if (n==0) {
|
if (n==0) {
|
||||||
|
|
Loading…
Reference in New Issue