forked from github/server
- FIRST_TURN war bin Vinya noch auf dem Eressea-Wert, dadurch Berechnungs-
und Speicherzugriffsfehler.
This commit is contained in:
parent
6e8b6b21b9
commit
75a8a89046
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue