forked from github/server
minor optimization and using fraction code
This commit is contained in:
parent
a3ebddeae4
commit
9e213d3bcd
|
@ -16,8 +16,3 @@ BIN_DIR="Debug"
|
|||
|
||||
cd $ROOT/$BIN_DIR
|
||||
make install
|
||||
|
||||
# install crontab, but only on the eressea server:
|
||||
# in fact, never do this, because it overwrites hand-edits
|
||||
#WHOAMI=`whoami`@`hostname`
|
||||
#[ "eressea@gruenbaer" = "$WHOAMI" ] && crontab $ROOT/process/cron/crontab
|
||||
|
|
|
@ -1107,7 +1107,7 @@ variant magic_resistance(unit * target)
|
|||
const plane *pl = rplane(target->region);
|
||||
|
||||
if (rc == get_race(RC_HIRNTOETER) && !pl) {
|
||||
prob.sa[1] *= 2;
|
||||
prob = frac_mul(prob, frac_make(1, 2));
|
||||
}
|
||||
assert(target->number > 0);
|
||||
/* Magier haben einen Resistenzbonus vom Magietalent * 5% */
|
||||
|
|
|
@ -1221,7 +1221,7 @@ static void add_seen_nb(faction *f, region *r, seen_mode mode) {
|
|||
for (d = 0; d != MAXDIRECTIONS; ++d) {
|
||||
region *rn = next[d];
|
||||
if (rn && rn->seen.mode<seen_neighbour) {
|
||||
add_seen(rn, seen_neighbour);
|
||||
rn->seen.mode = seen_neighbour;
|
||||
if (first->index>rn->index) first = rn;
|
||||
if (last->index<rn->index) last = rn;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue