mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-02-05 04:10:04 +00:00
Implemented saving gruntwork results to file.
* Monkey Skyway paths are now saved in a format compatible with paths.json * flush() is called on every periodic DB save in addition to the /flush and /mss N export commands * Monkeys now accept WIP routes
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "CNShared.hpp"
|
||||
#include "settings.hpp"
|
||||
#include "Database.hpp"
|
||||
#include "TableData.hpp" // for flush()
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
@@ -56,6 +57,7 @@ void CNShardServer::periodicSaveTimer(CNServer* serv, time_t currTime) {
|
||||
Database::updatePlayer(pair.second.plr);
|
||||
}
|
||||
|
||||
TableData::flush();
|
||||
std::cout << "[INFO] Done." << std::endl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user