mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Various style cleanups + unused code removal
-> Don't pass pointer to whole IGameDef to NodeMetadata constructors and deserializers, but only to IItemDefManager, which is needed -> Remove the unused content_mapnode_get_new_name() method -> Fix style for MapBlock::deSerialize and MapBlock::deSerialize_pre22, improving accuracy of error messages a bit -> Fix style at other serialisation methods too -> Improve accuracy of some comments
This commit is contained in:
parent
9c635f28ac
commit
452df1c723
11 changed files with 75 additions and 169 deletions
|
@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
|
||||
class NodeMetadataList;
|
||||
class NodeTimerList;
|
||||
class IGameDef;
|
||||
class IItemDefManager;
|
||||
|
||||
/*
|
||||
Legacy nodemeta definitions
|
||||
|
@ -32,7 +32,7 @@ class IGameDef;
|
|||
|
||||
void content_nodemeta_deserialize_legacy(std::istream &is,
|
||||
NodeMetadataList *meta, NodeTimerList *timers,
|
||||
IGameDef *gamedef);
|
||||
IItemDefManager *item_def_mgr);
|
||||
|
||||
void content_nodemeta_serialize_legacy(std::ostream &os, NodeMetadataList *meta);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue