Generic CAO cleanups and renames for clarification
authorest31 <MTest31@outlook.com>
Sat, 20 Jun 2015 01:20:06 +0000 (03:20 +0200)
committerest31 <MTest31@outlook.com>
Sat, 20 Jun 2015 01:37:30 +0000 (03:37 +0200)
commitdd91b3d6fbc3a0b4b18b36b14864d703213dd622
tree0c73f02ef3357f9557694d489a42df424fab51fc
parent40226e52747156cbdc5128a416480b226e498fff
Generic CAO cleanups and renames for clarification

* Use enum for GENERIC_CMD_*
* Rename m_attachements to attachement_parent_ids (public member and clearer name)
* Rename GENERIC_CMD_SET_ATTACHMENT to GENERIC_CMD_ATTACH_TO
* USHRT_MAX + 1 buffer sizes to prevent overflows as @kahrl suggested
* Remove unneccessary m_id from GenericCAO (shadowing protected superclass member for no reason) as @kahrl suggested
src/content_cao.cpp
src/content_cao.h
src/environment.cpp
src/environment.h
src/genericobject.cpp
src/genericobject.h
src/mapblock.cpp
src/network/networkprotocol.h