forked from github/server
- Einheiten der Partei 0 haben unbegrenzte Tragkapazität
This commit is contained in:
parent
5e798b4368
commit
dac2929c84
|
@ -29,6 +29,7 @@
|
|||
|
||||
/* kernel includes */
|
||||
#include "message.h"
|
||||
#include "curse.h"
|
||||
#include "spell.h"
|
||||
#include "names.h"
|
||||
#include "faction.h"
|
||||
|
|
|
@ -245,7 +245,10 @@ canwalk(unit * u)
|
|||
int wagen, maxwagen;
|
||||
int pferde, maxpferde;
|
||||
|
||||
if (dragonrace(u->race)) return 0;
|
||||
/* workaround: monsters are too stupid to drop items, therefore they have
|
||||
* infinite carrying capacity */
|
||||
|
||||
if (u->faction->no == 0) return 0;
|
||||
|
||||
wagen = get_item(u, I_WAGON);
|
||||
pferde = get_item(u, I_HORSE);
|
||||
|
@ -932,7 +935,7 @@ travel(region * first, unit * u, region * next, int flucht)
|
|||
cmistake(u, findorder(u, u->thisorder), 13, MSG_MOVE);
|
||||
return NULL;
|
||||
}
|
||||
if (playerrace(u->race)) {
|
||||
|
||||
switch (canwalk(u)) {
|
||||
case 1:
|
||||
cmistake(u, findorder(u, u->thisorder), 57, MSG_MOVE);
|
||||
|
@ -944,7 +947,7 @@ travel(region * first, unit * u, region * next, int flucht)
|
|||
cmistake(u, findorder(u, u->thisorder), 42, MSG_MOVE);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/* wir suchen so lange nach neuen Richtungen, wie es geht. Diese werden
|
||||
* dann nacheinander ausgeführt. */
|
||||
|
||||
|
|
Loading…
Reference in New Issue