- Einheiten der Partei 0 haben unbegrenzte Tragkapazität

This commit is contained in:
Christian Schlittchen 2002-04-07 08:20:27 +00:00
parent 5e798b4368
commit dac2929c84
2 changed files with 17 additions and 13 deletions

View File

@ -29,6 +29,7 @@
/* kernel includes */
#include "message.h"
#include "curse.h"
#include "spell.h"
#include "names.h"
#include "faction.h"

View File

@ -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. */