forked from github/server
Merge branch 'develop' of https://github.com/ennorehling/eressea.git
This commit is contained in:
commit
d0d366485e
1 changed files with 6 additions and 1 deletions
|
@ -4,7 +4,8 @@
|
||||||
#include "calendar.h"
|
#include "calendar.h"
|
||||||
#include "move.h" /* storms */
|
#include "move.h" /* storms */
|
||||||
|
|
||||||
#include <kernel/config.h>
|
#include "kernel/config.h"
|
||||||
|
#include "util/log.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -45,6 +46,10 @@ const gamedate *get_gamedate(int turn_now, gamedate * gd)
|
||||||
int t = turn_now - first_turn();
|
int t = turn_now - first_turn();
|
||||||
|
|
||||||
assert(gd);
|
assert(gd);
|
||||||
|
if (t<0) {
|
||||||
|
log_fatal("current turn %d is before first %d",
|
||||||
|
turn_now, first_turn());
|
||||||
|
}
|
||||||
assert(t>=0);
|
assert(t>=0);
|
||||||
|
|
||||||
gd->turn = turn_now;
|
gd->turn = turn_now;
|
||||||
|
|
Loading…
Reference in a new issue