Skip to content

Commit

Permalink
Cleanup|libcommon: Added a source subdirectory for "world"
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jul 25, 2016
1 parent 6b49242 commit e9a3525
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 11 deletions.
Expand Up @@ -61,7 +61,6 @@ namespace internal
}
}

using namespace internal;
using namespace de;

DENG2_PIMPL(MapStateReader)
Expand Down Expand Up @@ -166,7 +165,7 @@ DENG2_PIMPL(MapStateReader)

void readMaterialArchive()
{
materialArchive = new world::MaterialArchive(useMaterialArchiveSegments(), false /*empty*/);
materialArchive = new world::MaterialArchive(::internal::useMaterialArchiveSegments(), false /*empty*/);
#if !__JHEXEN__
if(mapVersion >= 4)
#endif
Expand Down Expand Up @@ -761,7 +760,7 @@ void MapStateReader::read(String const &mapUriStr)
d->readMapHeader();
d->readMaterialArchive();

d->thingArchive = new ThingArchive(thingArchiveVersionFor(d->mapVersion));
d->thingArchive = new ThingArchive(::internal::thingArchiveVersionFor(d->mapVersion));
#if !__JHEXEN__
d->thingArchive->initForLoad(d->thingArchiveSize);
#endif
Expand Down
Expand Up @@ -33,7 +33,7 @@

namespace internal
{
static bool useMaterialArchiveSegments() {
static bool MapStateWriter_useMaterialArchiveSegments() {
#if __JHEXEN__
return true;
#else
Expand All @@ -42,8 +42,6 @@ namespace internal
}
}

using namespace internal;

DENG2_PIMPL(MapStateWriter)
{
ThingArchive *thingArchive;
Expand Down Expand Up @@ -307,7 +305,7 @@ void MapStateWriter::write(Writer1 *writer, bool excludePlayers)
d->writer = writer;

// Prepare and populate the material archive.
d->materialArchive = new world::MaterialArchive(useMaterialArchiveSegments());
d->materialArchive = new world::MaterialArchive(::internal::MapStateWriter_useMaterialArchiveSegments());
d->materialArchive->addWorldMaterials();

Writer_WriteInt32(writer, MY_SAVE_MAGIC);
Expand Down
Expand Up @@ -21,10 +21,6 @@
* 02110-1301 USA</small>
*/

#ifdef MSVC
# pragma optimize("g", off)
#endif

#include "common.h"
#include "mobj.h"

Expand All @@ -39,6 +35,10 @@
#include "p_saveg.h"
#include "player.h"

#ifdef MSVC
# pragma optimize("g", off)
#endif

#define DROPOFFMOMENTUM_THRESHOLD (1.0 / 4)

/// Threshold for stopping walk animation.
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit e9a3525

Please sign in to comment.