Version
4.0-148
Branch
udpnet
Date
9 years, 6 months ago
Windows x64 Windows x86 Mac OS X
Commit
a62d6083d3328944947aa997fdd1b2a197c31862
Change author
comex
Change description
Make ChunkFile use "vectors" for storage rather than looking for a size ahead of time.

This is so that it can be used for netplay too.  Not that it really
saves much to get rid of 400 lines of SFML code, but it feels a little
silly to have two different mechanisms, and ChunkFile would be more
suitable when more types of data need to be sent over the socket
soon(tm).

Instead of using an actual vector it uses a PWBuffer, which is like a
std::vector<u8> but without initialization of elements to 0, avoiding some
preexisting slowdown.  May as well use that everywhere.