Disable day/night cycle on Mafia 1 for now

This commit is contained in:
Vortrex
2023-02-22 05:26:25 -06:00
parent d2335e7bec
commit 8e11b9337b
2 changed files with 13 additions and 11 deletions

View File

@@ -234,6 +234,7 @@ function checkServerGameTime() {
getServerConfig().minute = dateTime.getMinutes(); getServerConfig().minute = dateTime.getMinutes();
} }
/*
if (getGame() == V_GAME_MAFIA_ONE) { if (getGame() == V_GAME_MAFIA_ONE) {
if (getGameConfig().mainWorldScene[getGame()] == "FREERIDE") { if (getGameConfig().mainWorldScene[getGame()] == "FREERIDE") {
if (isServerGoingToChangeMapsSoon(getServerConfig().hour, getServerConfig().minute)) { if (isServerGoingToChangeMapsSoon(getServerConfig().hour, getServerConfig().minute)) {
@@ -277,6 +278,7 @@ function checkServerGameTime() {
} }
} }
} }
*/
if (isGameFeatureSupported("time")) { if (isGameFeatureSupported("time")) {
game.time.hour = getServerConfig().hour; game.time.hour = getServerConfig().hour;

View File

@@ -86,17 +86,17 @@ function updateServerRules() {
tempText = makeReadableTime(getServerConfig().hour, getServerConfig().minute); tempText = makeReadableTime(getServerConfig().hour, getServerConfig().minute);
timeWeatherRule.push(tempText); timeWeatherRule.push(tempText);
} }
} else { }// else {
if (getGame() == V_GAME_MAFIA_ONE) { // if (getGame() == V_GAME_MAFIA_ONE) {
if (isNightTime(getServerConfig().hour)) { // if (isNightTime(getServerConfig().hour)) {
tempText = "Night"; // tempText = "Night";
} else { // } else {
tempText = "Day"; // tempText = "Day";
} // }
//
timeWeatherRule.push(tempText); // timeWeatherRule.push(tempText);
} // }
} //}
if (isWeatherSupported()) { if (isWeatherSupported()) {
if (getServerConfig() != false) { if (getServerConfig() != false) {