Permalink
Browse files

Fix some more indentation

  • Loading branch information...
Kangz committed Nov 9, 2015
1 parent 8f3d860 commit 9a33c12d9ffec71354bf76d08083a9bec23da807
@@ -1239,8 +1239,8 @@ void CGameVM::QVMSyscall(int index, Util::Reader& reader, IPC::Channel& channel)

case CG_GETCURRENTSNAPSHOTNUMBER:
IPC::HandleMsg<GetCurrentSnapshotNumberMsg>(channel, std::move(reader), [this] (int& number, int& serverTime) {
number = cl.snap.messageNum;
serverTime = cl.snap.serverTime;
number = cl.snap.messageNum;
serverTime = cl.snap.serverTime;
});
break;

@@ -1264,9 +1264,9 @@ void CGameVM::QVMSyscall(int index, Util::Reader& reader, IPC::Channel& channel)

case CG_SETUSERCMDVALUE:
IPC::HandleMsg<SetUserCmdValueMsg>(channel, std::move(reader), [this] (int stateValue, int flags, float scale) {
cl.cgameUserCmdValue = stateValue;
cl.cgameFlags = flags;
cl.cgameSensitivity = scale;
cl.cgameUserCmdValue = stateValue;
cl.cgameFlags = flags;
cl.cgameSensitivity = scale;
});
break;

@@ -1525,7 +1525,7 @@ void CGameVM::QVMSyscall(int index, Util::Reader& reader, IPC::Channel& channel)

case CG_KEY_KEYNUMTOSTRINGBUF:
IPC::HandleMsg<Key::KeyNumToStringMsg>(channel, std::move(reader), [this] (int keynum, std::string& result) {
result = Key_KeynumToString(keynum);
result = Key_KeynumToString(keynum);
});
break;

@@ -1606,7 +1606,7 @@ void CGameVM::QVMSyscall(int index, Util::Reader& reader, IPC::Channel& channel)

case CG_LAN_UPDATEVISIBLEPINGS:
IPC::HandleMsg<LAN::UpdateVisiblePingsMsg>(channel, std::move(reader), [this] (int source, bool& res) {
res = CL_UpdateVisiblePings_f(source);
res = CL_UpdateVisiblePings_f(source);
});
break;

@@ -1619,14 +1619,14 @@ void CGameVM::QVMSyscall(int index, Util::Reader& reader, IPC::Channel& channel)
case CG_LAN_SERVERSTATUS:
IPC::HandleMsg<LAN::ServerStatusMsg>(channel, std::move(reader), [this] (const std::string& serverAddress, int len, std::string& status, int& res) {
std::unique_ptr<char[]> buffer(new char[len]);
res = CL_ServerStatus(serverAddress.c_str(), buffer.get(), len);
res = CL_ServerStatus(serverAddress.c_str(), buffer.get(), len);
status.assign(buffer.get(), len);
});
break;

case CG_LAN_RESETSERVERSTATUS:
IPC::HandleMsg<LAN::ResetServerStatusMsg>(channel, std::move(reader), [this] {
CL_ServerStatus(nullptr, nullptr, 0);
CL_ServerStatus(nullptr, nullptr, 0);
});
break;

@@ -114,12 +114,12 @@ void CL_ParsePacketEntities( msg_t *msg, const clSnapshot_t *oldSnapshot, clSnap
while (true) {
unsigned int newEntityNum = MSG_ReadBits(msg, GENTITYNUM_BITS);

if (newEntityNum == MAX_GENTITIES - 1) {
break;
if (msg->readcount > msg->cursize) {
Sys::Drop("CL_ParsePacketEntities: Unexpected end of message");
}

if (msg->readcount > msg->cursize) {
Sys::Drop("CL_ParsePacketEntities: end of message");
if (newEntityNum == MAX_GENTITIES - 1) {
break;
}

// (1) all entities that weren't specified between the previous newEntityNum and
@@ -77,7 +77,7 @@ typedef struct
int serverCommandNum; // execute all commands up to this before
// making the snapshot current

std::vector<entityState_t> entities;
std::vector<entityState_t> entities;
} clSnapshot_t;

// Arnout: for double tapping

0 comments on commit 9a33c12

Please sign in to comment.