diff --git a/src/decallib.cpp b/src/decallib.cpp index 5d24e44d51..7bfdfc3e73 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; diff --git a/src/rapidjson/writer.h b/src/rapidjson/writer.h index a288f07ffe..200abadaeb 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; }