Merge branch 'fix-map-creation' into 'noggit-shadowlands'
Fix map creation See merge request prophecy-rp/noggit-red!10
This commit is contained in:
@@ -209,9 +209,15 @@ void MapIndex::save()
|
||||
SetChunkHeader(wdtFile, curPos, 'MPHD', sizeof(MPHD));
|
||||
curPos += 8;
|
||||
|
||||
mphd.flags = 0;
|
||||
mphd.something = 0;
|
||||
if (mBigAlpha)
|
||||
mphd.flags |= 4;
|
||||
if (_sort_models_by_size_class)
|
||||
mphd.flags |= 8;
|
||||
|
||||
wdtFile.Insert(curPos, sizeof(MPHD), (char*)&mphd);
|
||||
curPos += sizeof(MPHD);
|
||||
// }
|
||||
|
||||
// MAIN
|
||||
// {
|
||||
|
||||
@@ -470,6 +470,7 @@ void MapCreationWizard::saveCurrentEntry()
|
||||
record.writeString(1, _directory->text().toStdString());
|
||||
|
||||
record.write(2, _instance_type->itemData(_instance_type->currentIndex()).toInt());
|
||||
record.write(3, _sort_by_size_cat->isChecked() ? 16 : 0 );
|
||||
_map_name->toRecord(record, 5);
|
||||
|
||||
record.write(22, _area_table_id->value());
|
||||
@@ -542,14 +543,14 @@ void MapCreationWizard::addNewMap()
|
||||
_map_desc_horde->clear();
|
||||
|
||||
_loading_screen->setValue(0);
|
||||
_minimap_icon_scale->setValue(0.0f);
|
||||
_minimap_icon_scale->setValue(1.0f);
|
||||
|
||||
_corpse_map_id->setCurrentIndex(0);
|
||||
|
||||
|
||||
_corpse_x->setValue(0.0f);
|
||||
_corpse_y->setValue(0.0f);
|
||||
_time_of_day_override->setValue(0);
|
||||
_time_of_day_override->setValue(-1);
|
||||
_expansion_id->setCurrentIndex(0);
|
||||
_raid_offset->setValue(0);
|
||||
_max_players->setValue(0);
|
||||
|
||||
Reference in New Issue
Block a user