Minor tweaks
This commit is contained in:
@@ -91,8 +91,9 @@ Region* RegionPagerBase::CreateRegion(int x, int y) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RegionPagerBase::UnloadRegion(int x, int y) {
|
void RegionPagerBase::UnloadRegion(int x, int y) {
|
||||||
//custom loop, not FindRegion()
|
regionList.remove_if([x, y](Region& region) -> bool {
|
||||||
regionList.remove_if([x, y](Region& region) -> bool { return region.GetX() == x && region.GetY() == y; });
|
return region.GetX() == x && region.GetY() == y;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void RegionPagerBase::UnloadAll() {
|
void RegionPagerBase::UnloadAll() {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
#include <stdexcept>
|
#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
|
//NOTE: don't confuse SerialPacket with UDPpacket
|
||||||
|
|
||||||
void UDPNetworkUtility::Open(int port) {
|
void UDPNetworkUtility::Open(int port) {
|
||||||
|
|||||||
@@ -5,14 +5,9 @@ TODO: make the whole thing more fault tolerant
|
|||||||
TODO: Authentication
|
TODO: Authentication
|
||||||
TODO: server is slaved to the client
|
TODO: server is slaved to the client
|
||||||
|
|
||||||
TODO: I completely forgot about status ailments
|
|
||||||
TODO: Time delay for requesting region packets
|
TODO: Time delay for requesting region packets
|
||||||
TODO: command line parameters overriding config.cfg settings
|
TODO: command line parameters overriding config.cfg settings
|
||||||
|
|
||||||
--Battle System--
|
|
||||||
|
|
||||||
TODO
|
|
||||||
|
|
||||||
--Requirements--
|
--Requirements--
|
||||||
|
|
||||||
The enemies need AI scripts
|
The enemies need AI scripts
|
||||||
|
|||||||
Reference in New Issue
Block a user