server/src/gamedb.c

21 lines
324 B
C
Raw Normal View History

2018-09-25 18:07:02 +02:00
#ifdef _MSC_VER
#include <platform.h>
#endif
#include "gamedb.h"
#include "kernel/database.h"
#include "kernel/faction.h"
void gamedb_update(void)
{
faction *f;
for (f = factions; f; f = f->next) {
int uid = dblib_save_faction(f, turn);
if (uid > 0) {
f->uid = uid;
}
}
}