From d7abf7092042693ada40656d1a9af65a3bf5f25e Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Tue, 17 Sep 2013 01:32:25 +0000 Subject: [PATCH] - updated crc log for units to exclude floating point rotation info --- source/glest_game/type_instances/unit.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/glest_game/type_instances/unit.cpp b/source/glest_game/type_instances/unit.cpp index eea36ce6..befbb45d 100644 --- a/source/glest_game/type_instances/unit.cpp +++ b/source/glest_game/type_instances/unit.cpp @@ -4095,9 +4095,11 @@ std::string Unit::toString(bool crcMode) const { result += " meetingPos = " + meetingPos.getString(); result += "\n"; - result += " lastRotation = " + floatToStr(this->lastRotation,16); - result += " targetRotation = " + floatToStr(this->targetRotation,16); - result += " rotation = " + floatToStr(this->rotation,16); + if(crcMode == false) { + result += " lastRotation = " + floatToStr(this->lastRotation,16); + result += " targetRotation = " + floatToStr(this->targetRotation,16); + result += " rotation = " + floatToStr(this->rotation,16); + } if(loadType != NULL) { result += " loadType = " + loadType->getName();