/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
#endif
#include <time.h>
#include "empthread.h"
+#include "game.h"
#include "misc.h"
#include "optlist.h"
#include "player.h"
} else {
logerror("No update scheduled");
/* want to sleep forever, but empthread doesn't provide that */
- while (empth_sleep(60 * 60 * 24) >= 0) ;
+ while (empth_sleep(time(NULL) + (60 * 60 * 24)) >= 0) ;
}
now = time(NULL);