mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Merge pull request #15007 from armano2/6.x
Cleanup some whitespaces and change some codestyle
This commit is contained in:
@@ -167,7 +167,7 @@ struct CalendarInvite
|
||||
void SetStatusTime(time_t statusTime) { _statusTime = statusTime; }
|
||||
time_t GetStatusTime() const { return _statusTime; }
|
||||
|
||||
void SetText(const std::string& text) { _text = text; }
|
||||
void SetText(std::string const& text) { _text = text; }
|
||||
std::string GetText() const { return _text; }
|
||||
|
||||
void SetStatus(CalendarInviteStatus status) { _status = status; }
|
||||
@@ -224,10 +224,10 @@ struct CalendarEvent
|
||||
void SetGuildId(ObjectGuid::LowType guildId) { _guildId = guildId; }
|
||||
ObjectGuid::LowType GetGuildId() const { return _guildId; }
|
||||
|
||||
void SetTitle(const std::string& title) { _title = title; }
|
||||
void SetTitle(std::string const& title) { _title = title; }
|
||||
std::string GetTitle() const { return _title; }
|
||||
|
||||
void SetDescription(const std::string& description) { _description = description; }
|
||||
void SetDescription(std::string const& description) { _description = description; }
|
||||
std::string GetDescription() const { return _description; }
|
||||
|
||||
void SetType(CalendarEventType type) { _type = type; }
|
||||
|
||||
@@ -117,4 +117,3 @@ private:
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -178,4 +178,3 @@ inline void Cell::VisitCircle(TypeContainerVisitor<T, CONTAINER>& visitor, Map&
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -141,4 +141,3 @@ class Grid
|
||||
//ActiveGridObjects m_activeGridObjects;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -75,4 +75,3 @@ class GridLoader
|
||||
};
|
||||
*/
|
||||
#endif
|
||||
|
||||
|
||||
@@ -39,4 +39,3 @@ class GridRefManager : public RefManager<GridRefManager<OBJECT>, OBJECT>
|
||||
iterator rend() { return iterator(NULL); }
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -50,4 +50,3 @@ class GridReference : public Reference<GridRefManager<OBJECT>, OBJECT>
|
||||
GridReference* next() { return (GridReference*)Reference<GridRefManager<OBJECT>, OBJECT>::next(); }
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -61,4 +61,3 @@ void RemovalState::Update(Map& map, NGridType& grid, GridInfo& info, uint32 diff
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -191,4 +191,3 @@ class NGrid
|
||||
bool i_GridObjectDataLoaded;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -192,14 +192,14 @@ std::string Warden::Penalty(WardenCheck* check /*= NULL*/)
|
||||
|
||||
switch (action)
|
||||
{
|
||||
case WARDEN_ACTION_LOG:
|
||||
return "None";
|
||||
break;
|
||||
case WARDEN_ACTION_KICK:
|
||||
_session->KickPlayer();
|
||||
return "Kick";
|
||||
break;
|
||||
case WARDEN_ACTION_BAN:
|
||||
case WARDEN_ACTION_LOG:
|
||||
return "None";
|
||||
break;
|
||||
case WARDEN_ACTION_KICK:
|
||||
_session->KickPlayer();
|
||||
return "Kick";
|
||||
break;
|
||||
case WARDEN_ACTION_BAN:
|
||||
{
|
||||
std::stringstream duration;
|
||||
duration << sWorld->getIntConfig(CONFIG_WARDEN_CLIENT_BAN_DURATION) << "s";
|
||||
@@ -215,8 +215,8 @@ std::string Warden::Penalty(WardenCheck* check /*= NULL*/)
|
||||
|
||||
return "Ban";
|
||||
}
|
||||
default:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return "Undefined";
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ bool Weather::ReGenerate()
|
||||
time_t gtime = sWorld->GetGameTime();
|
||||
struct tm ltime;
|
||||
localtime_r(>ime, <ime);
|
||||
uint32 season = ((ltime.tm_yday - 78 + 365)/91)%4;
|
||||
uint32 season = ((ltime.tm_yday - 78 + 365) / 91) % 4;
|
||||
|
||||
static char const* seasonName[WEATHER_SEASONS] = { "spring", "summer", "fall", "winter" };
|
||||
|
||||
@@ -152,8 +152,8 @@ bool Weather::ReGenerate()
|
||||
|
||||
// At this point, only weather that isn't doing anything remains but that have weather data
|
||||
uint32 chance1 = m_weatherChances->data[season].rainChance;
|
||||
uint32 chance2 = chance1+ m_weatherChances->data[season].snowChance;
|
||||
uint32 chance3 = chance2+ m_weatherChances->data[season].stormChance;
|
||||
uint32 chance2 = chance1 + m_weatherChances->data[season].snowChance;
|
||||
uint32 chance3 = chance2 + m_weatherChances->data[season].stormChance;
|
||||
|
||||
uint32 rnd = urand(0, 99);
|
||||
if (rnd <= chance1)
|
||||
@@ -316,4 +316,3 @@ WeatherState Weather::GetWeatherState() const
|
||||
return WEATHER_STATE_FINE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user