mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 13:49:40 +00:00
[General] Leave one blank line at the end of every tes3mp code file
This commit is contained in:
parent
2158e94a96
commit
158d606477
19 changed files with 16 additions and 20 deletions
|
@ -189,4 +189,4 @@ void MasterClient::SetUpdateRate(unsigned int rate)
|
||||||
else if (timeout > max_rate)
|
else if (timeout > max_rate)
|
||||||
timeout = max_rate;
|
timeout = max_rate;
|
||||||
timeout = rate;
|
timeout = rate;
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,4 +90,4 @@ void Public::DeleteAll()
|
||||||
delete _public;
|
delete _public;
|
||||||
publics.erase(it);
|
publics.erase(it);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -235,4 +235,4 @@ void TimerAPI::Tick()
|
||||||
if (timer.second != nullptr)
|
if (timer.second != nullptr)
|
||||||
timer.second->Tick();
|
timer.second->Tick();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,5 +45,3 @@ bool ScriptFunctions::IsTimerElapsed(int timerId) noexcept
|
||||||
{
|
{
|
||||||
return TimerAPI::IsEndTimer(timerId);
|
return TimerAPI::IsEndTimer(timerId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -193,4 +193,3 @@ void TranslocationFunctions::SendCell(unsigned short pid) noexcept
|
||||||
|
|
||||||
mwmp::Networking::get().getPlayerController()->GetPacket(ID_PLAYER_CELL_CHANGE)->Send(player, false);
|
mwmp::Networking::get().getPlayerController()->GetPacket(ID_PLAYER_CELL_CHANGE)->Send(player, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -179,4 +179,4 @@ int LangLua::CreateTimerEx(lua_State *lua)
|
||||||
int id = mwmp::TimerAPI::CreateTimerLua(lua, callback, msec, types, args);
|
int id = mwmp::TimerAPI::CreateTimerLua(lua, callback, msec, types, args);
|
||||||
luabridge::push(lua, id);
|
luabridge::push(lua, id);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,4 +99,4 @@ LangNative::LangNative()
|
||||||
LangNative::~LangNative()
|
LangNative::~LangNative()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,4 +106,4 @@ void Script::LoadScript(const char *script, const char *base)
|
||||||
char path[4096];
|
char path[4096];
|
||||||
snprintf(path, sizeof(path), Utils::convertPath("%s/%s/%s").c_str(), base, "scripts", script);
|
snprintf(path, sizeof(path), Utils::convertPath("%s/%s/%s").c_str(), base, "scripts", script);
|
||||||
Script::scripts.emplace_back(new Script(path));
|
Script::scripts.emplace_back(new Script(path));
|
||||||
}
|
}
|
||||||
|
|
|
@ -222,4 +222,3 @@ boost::any ScriptFunction::Call(const vector<boost::any> &args)
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -245,4 +245,4 @@ unsigned int Utils::crc32buf(char* buf, size_t len)
|
||||||
}
|
}
|
||||||
|
|
||||||
return ~oldcrc32;
|
return ~oldcrc32;
|
||||||
}
|
}
|
||||||
|
|
|
@ -262,4 +262,4 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
breakpad_close();
|
breakpad_close();
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
|
@ -233,4 +233,4 @@ namespace mwmp
|
||||||
{
|
{
|
||||||
this->delay = delay;
|
this->delay = delay;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -384,4 +384,4 @@ void mwmp::GUIController::blockConsole()
|
||||||
if (MWBase::Environment::get().getWindowManager()->isGuiMode())
|
if (MWBase::Environment::get().getWindowManager()->isGuiMode())
|
||||||
if (MWBase::Environment::get().getWindowManager()->getMode() == MWGui::GM_Console)
|
if (MWBase::Environment::get().getWindowManager()->getMode() == MWGui::GM_Console)
|
||||||
MWBase::Environment::get().getWindowManager()->popGuiMode();
|
MWBase::Environment::get().getWindowManager()->popGuiMode();
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,4 +19,4 @@ GUILogin::GUILogin() : WindowModal("tes3mp_login.layout")
|
||||||
getWidget(mPort, "EditPort");
|
getWidget(mPort, "EditPort");
|
||||||
getWidget(mConnect, "ButtonConnect");
|
getWidget(mConnect, "ButtonConnect");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,4 +114,4 @@ string Log::getFilenameTimestamp()
|
||||||
strftime(buffer, 25, "%Y-%m-%d-%I_%M_%S", timeinfo);
|
strftime(buffer, 25, "%Y-%m-%d-%I_%M_%S", timeinfo);
|
||||||
std::string timestamp(buffer);
|
std::string timestamp(buffer);
|
||||||
return timestamp;
|
return timestamp;
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,4 +55,4 @@ void PacketActiveSkills::Packet(RakNet::BitStream *bs, mwmp::BasePlayer *player,
|
||||||
}
|
}
|
||||||
player->activeSpells.mSpells.insert(spell);
|
player->activeSpells.mSpells.insert(spell);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,4 +18,4 @@ void PacketDynamicStats::Packet(RakNet::BitStream *bs, BasePlayer *player, bool
|
||||||
RW(player->creatureStats.mDynamic[0], send); // health
|
RW(player->creatureStats.mDynamic[0], send); // health
|
||||||
RW(player->creatureStats.mDynamic[1], send); // magic
|
RW(player->creatureStats.mDynamic[1], send); // magic
|
||||||
RW(player->creatureStats.mDynamic[2], send); // fatigue
|
RW(player->creatureStats.mDynamic[2], send); // fatigue
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,4 +21,4 @@ void PacketPosition::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send
|
||||||
|
|
||||||
RW(player->position, send);
|
RW(player->position, send);
|
||||||
RW(player->direction, send);
|
RW(player->direction, send);
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,4 +19,4 @@ void PacketTime::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
|
||||||
RW(player->month, send);
|
RW(player->month, send);
|
||||||
RW(player->day, send);
|
RW(player->day, send);
|
||||||
RW(player->hour, send);
|
RW(player->hour, send);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue