[General] Leave one blank line at the end of every tes3mp code file

coverity_scan^2
David Cernat 8 years ago
parent 2158e94a96
commit 158d606477

@ -189,4 +189,4 @@ void MasterClient::SetUpdateRate(unsigned int rate)
else if (timeout > max_rate)
timeout = max_rate;
timeout = rate;
}
}

@ -90,4 +90,4 @@ void Public::DeleteAll()
delete _public;
publics.erase(it);
}
}
}

@ -235,4 +235,4 @@ void TimerAPI::Tick()
if (timer.second != nullptr)
timer.second->Tick();
}
}
}

@ -45,5 +45,3 @@ bool ScriptFunctions::IsTimerElapsed(int timerId) noexcept
{
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);
}

@ -179,4 +179,4 @@ int LangLua::CreateTimerEx(lua_State *lua)
int id = mwmp::TimerAPI::CreateTimerLua(lua, callback, msec, types, args);
luabridge::push(lua, id);
return 1;
}
}

@ -99,4 +99,4 @@ LangNative::LangNative()
LangNative::~LangNative()
{
}
}

@ -106,4 +106,4 @@ void Script::LoadScript(const char *script, const char *base)
char path[4096];
snprintf(path, sizeof(path), Utils::convertPath("%s/%s/%s").c_str(), base, "scripts", script);
Script::scripts.emplace_back(new Script(path));
}
}

@ -222,4 +222,3 @@ boost::any ScriptFunction::Call(const vector<boost::any> &args)
return result;
}

@ -245,4 +245,4 @@ unsigned int Utils::crc32buf(char* buf, size_t len)
}
return ~oldcrc32;
}
}

@ -262,4 +262,4 @@ int main(int argc, char *argv[])
breakpad_close();
return code;
}
}

@ -233,4 +233,4 @@ namespace mwmp
{
this->delay = delay;
}
}
}

@ -384,4 +384,4 @@ void mwmp::GUIController::blockConsole()
if (MWBase::Environment::get().getWindowManager()->isGuiMode())
if (MWBase::Environment::get().getWindowManager()->getMode() == MWGui::GM_Console)
MWBase::Environment::get().getWindowManager()->popGuiMode();
}
}

@ -19,4 +19,4 @@ GUILogin::GUILogin() : WindowModal("tes3mp_login.layout")
getWidget(mPort, "EditPort");
getWidget(mConnect, "ButtonConnect");
}
}

@ -114,4 +114,4 @@ string Log::getFilenameTimestamp()
strftime(buffer, 25, "%Y-%m-%d-%I_%M_%S", timeinfo);
std::string timestamp(buffer);
return timestamp;
}
}

@ -55,4 +55,4 @@ void PacketActiveSkills::Packet(RakNet::BitStream *bs, mwmp::BasePlayer *player,
}
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[1], send); // magic
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->direction, send);
}
}

@ -19,4 +19,4 @@ void PacketTime::Packet(RakNet::BitStream *bs, BasePlayer *player, bool send)
RW(player->month, send);
RW(player->day, send);
RW(player->hour, send);
}
}

Loading…
Cancel
Save