REVERT.
This commit is contained in:
parent
ba6b383251
commit
745f40bc37
@ -1173,11 +1173,11 @@ netprot::Packet netprot::makePack(void* ptr, PACKET_TYPE type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void netprot::recvPacks(SOCKET sock, Buffer* buf, std::vector<char*>* lsPck) {
|
void netprot::recvPacks(SOCKET sock, Buffer* buf, std::vector<char*>* lsPck) {
|
||||||
int len = 0,//buf->tmp ? buf->tmp - buf->ptr : 0,
|
int len = buf->tmp ? buf->tmp - buf->ptr : 0,
|
||||||
end = 0;
|
end = 0;
|
||||||
char* cursor = nullptr,//buf->tmp ? buf->tmp : nullptr,
|
char* cursor = buf->tmp ? buf->tmp : nullptr,
|
||||||
* next = buf->ptr,//buf->tmp ? buf->tmp + 1 : buf->ptr,
|
* next = buf->tmp ? buf->tmp + 1 : buf->ptr,
|
||||||
* last = buf->ptr;//buf->tmp ? buf->tmp : buf->ptr;
|
* last = buf->tmp ? buf->tmp : buf->ptr;
|
||||||
bool ended = true;
|
bool ended = true;
|
||||||
struct pollfd fds[1];
|
struct pollfd fds[1];
|
||||||
|
|
||||||
|
@ -391,9 +391,6 @@ void Server::Run() {
|
|||||||
for (auto& bull: bullit)
|
for (auto& bull: bullit)
|
||||||
bullets.erase(bull);
|
bullets.erase(bull);
|
||||||
|
|
||||||
if (!bullets.empty())
|
|
||||||
bullets.clear();
|
|
||||||
|
|
||||||
if (!bullit.empty())
|
if (!bullit.empty())
|
||||||
bullit.clear();
|
bullit.clear();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user