Minor tweaks

This commit is contained in:
Kayne Ruse
2014-08-13 06:19:07 +10:00
parent 956e920b7a
commit 182101b592
3 changed files with 4 additions and 8 deletions
+3 -2
View File
@@ -91,8 +91,9 @@ Region* RegionPagerBase::CreateRegion(int x, int y) {
}
void RegionPagerBase::UnloadRegion(int x, int y) {
//custom loop, not FindRegion()
regionList.remove_if([x, y](Region& region) -> bool { return region.GetX() == x && region.GetY() == y; });
regionList.remove_if([x, y](Region& region) -> bool {
return region.GetX() == x && region.GetY() == y;
});
}
void RegionPagerBase::UnloadAll() {
+1 -1
View File
@@ -25,7 +25,7 @@
#include <stdexcept>
//BUGFIX: memset() is used before sending a packet to remove old data; you don't want to send sensitive data over the network
//NOTE: memset() is used before sending a packet to remove old data; you don't want to send sensitive data over the network
//NOTE: don't confuse SerialPacket with UDPpacket
void UDPNetworkUtility::Open(int port) {