mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-21 19:40:39 +00:00
Cleaned up item drop logic.
* Replaced bad exception logic with C-style error returns in ItemManager * Removed unnecessary instances of objects being passed by value * Fixed whitespace problems * Added new config options to the default config.ini * Updated tabledata reference
This commit is contained in:
@@ -103,11 +103,15 @@ int main() {
|
||||
GroupManager::init();
|
||||
Database::open();
|
||||
|
||||
switch (settings::EVENTMODE)
|
||||
{
|
||||
switch (settings::EVENTMODE) {
|
||||
case 0: break; // no event
|
||||
case 1: std::cout << "[INFO] Event active. Hey, Hey It's Knishmas!" << std::endl; break;
|
||||
case 2: std::cout << "[INFO] Event active. Wishing you a spook-tacular Halloween!" << std::endl; break;
|
||||
case 3: std::cout << "[INFO] Event active. Have a very hoppy Easter!" << std::endl; break;
|
||||
default:
|
||||
std::cout << "[FATAL] Unknown event set in config file." << std::endl;
|
||||
terminate(0);
|
||||
/* not reached */
|
||||
}
|
||||
|
||||
std::cout << "[INFO] Starting Server Threads..." << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user