Generate road map on save only with editor

This commit is contained in:
nsubiron 2017-06-24 15:52:53 +02:00
parent 8faea3b566
commit aeccb7c130
1 changed files with 2 additions and 0 deletions

View File

@ -35,10 +35,12 @@ ACityMapGenerator::~ACityMapGenerator() {}
void ACityMapGenerator::PreSave(const ITargetPlatform *TargetPlatform) void ACityMapGenerator::PreSave(const ITargetPlatform *TargetPlatform)
{ {
#if WITH_EDITOR
if (bGenerateRoadMapOnSave) { if (bGenerateRoadMapOnSave) {
check(RoadMap != nullptr); check(RoadMap != nullptr);
GenerateRoadMap(); GenerateRoadMap();
} }
#endif // WITH_EDITOR
Super::PreSave(TargetPlatform); Super::PreSave(TargetPlatform);
} }