From a0595f17e8c33301a6b12f2217d3ab643e13c18b Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 20 Dec 2016 13:13:50 +0200 Subject: [PATCH 1/2] Serializer now writes floating point zero if special value is encountered See https://forum.zdoom.org/viewtopic.php?t=54592 --- src/rapidjson/writer.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rapidjson/writer.h b/src/rapidjson/writer.h index a288f07ff..200abadae 100644 --- a/src/rapidjson/writer.h +++ b/src/rapidjson/writer.h @@ -527,7 +527,9 @@ inline bool Writer::WriteDouble(double d) { if (!(kWriteDefaultFlags & kWriteNanAndInfFlag)) { // At least ensure that the output does not get broken. - PutReserve(*os_, 1); + PutReserve(*os_, 3); + PutUnsafe(*os_, '0'); + PutUnsafe(*os_, '.'); PutUnsafe(*os_, '0'); return false; } From 9f6d8d2ba709af32e0a183774ae46e12edc8d37d Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 20 Dec 2016 13:14:02 +0200 Subject: [PATCH 2/2] Set goal values in decal stretcher to zeros even if they are not used See https://forum.zdoom.org/viewtopic.php?t=54592 --- src/decallib.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/decallib.cpp b/src/decallib.cpp index 5d24e44d5..7bfdfc3e7 100644 --- a/src/decallib.cpp +++ b/src/decallib.cpp @@ -1232,6 +1232,7 @@ DThinker *FDecalStretcherAnim::CreateThinker (DBaseDecal *actor, side_t *wall) c } else { + thinker->GoalX = 0; thinker->bStretchX = false; } if (GoalY >= 0) @@ -1241,6 +1242,7 @@ DThinker *FDecalStretcherAnim::CreateThinker (DBaseDecal *actor, side_t *wall) c } else { + thinker->GoalY = 0; thinker->bStretchY = false; } thinker->bStarted = false;