From 55ecde665d62d3de152c17fa9b463735bee7d0a9 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sat, 6 Jul 2013 15:03:34 -0400 Subject: Decoration: Remove usage of multi-character constants --- src/mapgen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mapgen.cpp') diff --git a/src/mapgen.cpp b/src/mapgen.cpp index 94d1a6310..fe1cfb3a4 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -660,7 +660,7 @@ bool DecoSchematic::loadSchematicFile() { std::ifstream is(filename.c_str(), std::ios_base::binary); u32 signature = readU32(is); - if (signature != 'MTSM') { + if (signature != MTSCHEM_FILE_SIGNATURE) { errorstream << "loadSchematicFile: invalid schematic " "file" << std::endl; return false; @@ -719,7 +719,7 @@ bool DecoSchematic::loadSchematicFile() { void DecoSchematic::saveSchematicFile(INodeDefManager *ndef) { std::ofstream os(filename.c_str(), std::ios_base::binary); - writeU32(os, 'MTSM'); // signature + writeU32(os, MTSCHEM_FILE_SIGNATURE); // signature writeU16(os, 1); // version writeV3S16(os, size); // schematic size -- cgit v1.2.3