code cleanup
This commit is contained in:
parent
aab72b863c
commit
b6780d2af7
|
@ -787,8 +787,8 @@ void Commander::giveNetworkCommand(NetworkCommand* networkCommand) const {
|
|||
commandWasHandled = true;
|
||||
|
||||
bool pauseGame = networkCommand->getUnitId() != 0;
|
||||
bool clearCaches = networkCommand->getCommandTypeId();
|
||||
bool joinNetworkGame = networkCommand->getUnitTypeId();
|
||||
bool clearCaches = (networkCommand->getCommandTypeId() == 1);
|
||||
bool joinNetworkGame = (networkCommand->getUnitTypeId() == 1);
|
||||
Game *game = this->world->getGame();
|
||||
|
||||
//printf("nctPauseResume pauseGame = %d\n",pauseGame);
|
||||
|
|
|
@ -1933,7 +1933,7 @@ void ScriptManager::unregisterDayNightEvent() {
|
|||
|
||||
void ScriptManager::onDayNightTriggerEvent() {
|
||||
if(registeredDayNightEvent == true) {
|
||||
bool isDay = this->getIsDayTime();
|
||||
bool isDay = (this->getIsDayTime() == 1);
|
||||
if((lastDayNightTriggerStatus != 1 && isDay == true) ||
|
||||
(lastDayNightTriggerStatus != 2 && isDay == false)) {
|
||||
if(isDay == true) {
|
||||
|
|
|
@ -3531,7 +3531,6 @@ int glestMain(int argc, char** argv) {
|
|||
setupGameItemPaths(argc, argv, &config);
|
||||
|
||||
if(config.getString("PlayerId","") == "") {
|
||||
Shared::Util::uuid_t u;
|
||||
char uuid_str[38];
|
||||
get_uuid_string(uuid_str,sizeof(uuid_str));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user