diff --git a/code/nel/src/misc/streamed_package_manager.cpp b/code/nel/src/misc/streamed_package_manager.cpp
index ecfb988b8..3fe497e3e 100644
--- a/code/nel/src/misc/streamed_package_manager.cpp
+++ b/code/nel/src/misc/streamed_package_manager.cpp
@@ -27,7 +27,7 @@ namespace NLMISC
NLMISC_SAFE_SINGLETON_IMPL(CStreamedPackageManager);
-CStreamedPackageManager::CStreamedPackageManager()
+CStreamedPackageManager::CStreamedPackageManager() : Provider(NULL)
{
// init
}
diff --git a/code/nel/src/pacs/build_indoor.cpp b/code/nel/src/pacs/build_indoor.cpp
index ca14eb7cf..5b4c870d7 100644
--- a/code/nel/src/pacs/build_indoor.cpp
+++ b/code/nel/src/pacs/build_indoor.cpp
@@ -1,6 +1,9 @@
// NeL - MMORPG Framework
// Copyright (C) 2010 Winch Gate Property Limited
//
+// This source file has been modified by the following contributors:
+// Copyright (C) 2019 Jan BOON (Kaetemi)
+//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
@@ -17,6 +20,8 @@
#include "stdpacs.h"
#include "nel/pacs/build_indoor.h"
+#include
+
#include "nel/pacs/collision_mesh_build.h"
#include "nel/pacs/local_retriever.h"
#include "nel/pacs/exterior_mesh.h"
@@ -518,24 +523,26 @@ void linkExteriorToInterior(CLocalRetriever &lr)
for (i=0; i
+// Copyright (C) 2015-2019 Jan BOON (Kaetemi)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
@@ -19,6 +19,8 @@
#include "stdpacs.h"
+#include
+
#include "nel/misc/plane.h"
#include "nel/pacs/local_retriever.h"
@@ -269,15 +271,16 @@ void NLPACS::CLocalRetriever::dumpSurface(uint surf, const CVector &vect) const
{
const CRetrievableSurface::TLoop &loop = surface._Loops[i];
nlinfo("-- loop %d: %d chains length=%.2f", i, loop.size(), loop.Length);
- static char wbuffer[256];
- static char buffer[10240];
- sprintf(buffer, " chains:");
+ char wbuffer[256];
+ stringstream ss;
+ sprintf(wbuffer, " chains:");
+ ss << wbuffer;
for (j=0; j
// Copyright (C) 2010 Winch Gate Property Limited
//
+// This source file has been modified by the following contributors:
+// Copyright (C) 2019 Jan BOON (Kaetemi)
+//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
@@ -18,6 +21,10 @@
#include "../zone_lib/zone_utility.h"
#include
+#include
+#include
+#include
+
#include "nel/misc/types_nl.h"
#include "nel/misc/file.h"
#include "nel/misc/common.h"
@@ -27,8 +34,6 @@
#include "nel/3d/zone_smoother.h"
#include "nel/3d/zone_tgt_smoother.h"
#include "nel/3d/zone_corner_smoother.h"
-#include
-#include
using namespace NL3D;
@@ -579,7 +584,8 @@ void weldZones(const char *center)
if (adjZonePatchs[patchIndex].BindEdges[edgeIndex].NPatchs!=0)
{
// Build an error message
- char error[8000];
+ char buf[2048];
+ stringstream sserror;
// Zone name
string nameCenter, nameAdj;
@@ -587,10 +593,11 @@ void weldZones(const char *center)
getZoneNameByCoord (adjZonesId[i]&0xff, (adjZonesId[i]>>8)+1, nameAdj);
// Main message
- smprintf (error, 2048,
+ smprintf(buf, 2048,
"Bind Error: try to bind the patch n %d in zone n %s with patch n %d in zone %s\n"
"This patch is already binded with the following patches : ", ptch+1, nameAdj.c_str(),
patchIndex+1, nameCenter.c_str() );
+ sserror << buf;
// Sub message
for (uint i=0; i
// Copyright (C) 2010 Winch Gate Property Limited
//
+// This source file has been modified by the following contributors:
+// Copyright (C) 2019 Jan BOON (Kaetemi)
+//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
@@ -16,6 +19,7 @@
#include