- FIRST_TURN war bin Vinya noch auf dem Eressea-Wert, dadurch Berechnungs-

und Speicherzugriffsfehler.
This commit is contained in:
Christian Schlittchen 2002-11-10 14:46:21 +00:00
parent 6e8b6b21b9
commit 75a8a89046
3 changed files with 12 additions and 1 deletions

View File

@ -186,6 +186,8 @@ season(int turn)
year = t/(months_per_year * weeks_per_month) + 1;
month = (t - (year-1) * months_per_year * weeks_per_month)/weeks_per_month;
assert(month >= 0 && month < months_per_year);
return month_season[month];
}

View File

@ -1178,7 +1178,11 @@ extern void reorder_owners(struct region * r);
extern const char *localenames[];
#define FIRST_TURN 184
/* FIRST_TURN is only used in eressea */
#ifndef FIRST_TURN
#define FIRST_TURN 0
#endif
#include <log.h>

View File

@ -45,3 +45,8 @@
#define ARENA_MODULE
#define MAILITPATH "/usr/sbin:$HOME/eressea/bin:/bin:/usr/bin:/usr/local/bin"
/* Krücke für die Berechnung der Jahreszeiten in Eressea */
#define FIRST_TURN 184