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
Showing
- src/content_cao.cpp 7 additions, 8 deletionssrc/content_cao.cpp
- src/content_cao.h 0 additions, 1 deletionsrc/content_cao.h
- src/environment.cpp 1 addition, 1 deletionsrc/environment.cpp
- src/environment.h 1 addition, 1 deletionsrc/environment.h
- src/genericobject.cpp 1 addition, 1 deletionsrc/genericobject.cpp
- src/genericobject.h 13 additions, 11 deletionssrc/genericobject.h
- src/mapblock.cpp 2 additions, 2 deletionssrc/mapblock.cpp
- src/network/networkprotocol.h 1 addition, 0 deletionssrc/network/networkprotocol.h
Loading
Please register or sign in to comment