diff options
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp index 5b4eb7d10..d48231883 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -577,7 +577,7 @@ void Client::step(float dtime) { if(sendlist.size() == 255 || i == deleted_blocks.end()) { - if(sendlist.size() == 0) + if(sendlist.empty()) break; /* [0] u16 command @@ -813,7 +813,7 @@ void Client::step(float dtime) } } // Sync to server - if(removed_server_ids.size() != 0) + if(!removed_server_ids.empty()) { std::ostringstream os(std::ios_base::binary); writeU16(os, TOSERVER_REMOVED_SOUNDS); |