Update bounding to fix phoenix attack

This commit is contained in:
Retera 2020-10-08 02:32:20 -04:00
parent 843b04b4a8
commit 3dc8aff716
5 changed files with 54 additions and 45 deletions

View File

@ -1,26 +1,26 @@
// This is the Warsmash INI file for Project Revolution
// PRSCMOD
[DataSources] [DataSources]
Count=9 Count=7
Type00=MPQ Type00=MPQ
Path00="E:\Games\Warcraft III Project Revolution\War3\The Sheep Attack\war3.mpq" Path00="E:\Games\Warcraft III Patch 1.22\war3.mpq"
Type01=MPQ Type01=MPQ
Path01="E:\Games\Warcraft III Project Revolution\War3\The Sheep Attack\War3x.mpq" Path01="E:\Games\Warcraft III Patch 1.22\War3x.mpq"
Type02=MPQ Type02=MPQ
Path02="E:\Games\Warcraft III Project Revolution\War3\The Sheep Attack\War3xlocal.mpq" Path02="E:\Games\Warcraft III Patch 1.22\War3xlocal.mpq"
Type03=MPQ Type03=MPQ
Path03="E:\Games\Warcraft III Project Revolution\War3\The Sheep Attack\war3patch.mpq" Path03="E:\Games\Warcraft III Patch 1.22\War3Patch.mpq"
Type04=MPQ Type04=Folder
Path04="E:\Games\Warcraft III Project Revolution\PRSCMOD\Revolution.mpq" Path04="..\..\resources"
Type05=MPQ Type05=Folder
Path05="E:\Games\Warcraft III Project Revolution\PRSCMOD\Sound.mpq" Path05="E:\Backups\Warsmash\Data"
Type06=Folder Type06=Folder
Path06="E:\Games\Warcraft III Project Revolution\ProjectRevolusmash" Path06="."
Type07=Folder
Path07="..\..\resources"
Type08=Folder
Path08="E:\Games\Warcraft III Project Revolution\PRSCMOD\PR-Maps"
[Map] [Map]
FilePath="ProjectRevolusmash.w3x" //FilePath="CombatUnitTests.w3x"
//FilePath="PitchRoll.w3x"
//FilePath="PeonStartingBase.w3x"
//FilePath="DungeonGoldMine.w3m"
//FilePath="PlayerPeasants.w3m"
//FilePath="FireLord.w3x"
//FilePath="Maps\Campaign\NightElf03.w3m"
FilePath="PhoenixAttack.w3x"

View File

@ -1,25 +0,0 @@
[DataSources]
Count=7
Type00=MPQ
Path00="E:\Games\Warcraft III Patch 1.22\war3.mpq"
Type01=MPQ
Path01="E:\Games\Warcraft III Patch 1.22\War3x.mpq"
Type02=MPQ
Path02="E:\Games\Warcraft III Patch 1.22\War3xlocal.mpq"
Type03=MPQ
Path03="E:\Games\Warcraft III Patch 1.22\War3Patch.mpq"
Type04=Folder
Path04="..\..\resources"
Type05=Folder
Path05="E:\Backups\Warsmash\Data"
Type06=Folder
Path06="."
[Map]
//FilePath="CombatUnitTests.w3x"
//FilePath="PitchRoll.w3x"
FilePath="PeonStartingBase.w3x"
//FilePath="DungeonGoldMine.w3m"
//FilePath="PlayerPeasants.w3m"
//FilePath="FireLord.w3x"
//FilePath="Maps\Campaign\NightElf03.w3m"

View File

@ -17,5 +17,6 @@ Path04="."
//FilePath="Maps\Campaign\NightElf03.w3m" //FilePath="Maps\Campaign\NightElf03.w3m"
//FilePath="PrivateDontShare/Cult 8.w3x" //FilePath="PrivateDontShare/Cult 8.w3x"
//FilePath="TorchLight2.w3x" //FilePath="TorchLight2.w3x"
FilePath="OrcAssault.w3x" //FilePath="OrcAssault.w3x"
//FilePath="PeonStartingBase.w3x" //FilePath="PeonStartingBase.w3x"
FilePath="PhoenixAttack.w3x"

View File

@ -0,0 +1,26 @@
// This is the Warsmash INI file for Project Revolution
// PRSCMOD
[DataSources]
Count=9
Type00=MPQ
Path00="E:\Games\Warcraft III Project Revolution\War3\The Sheep Attack\war3.mpq"
Type01=MPQ
Path01="E:\Games\Warcraft III Project Revolution\War3\The Sheep Attack\War3x.mpq"
Type02=MPQ
Path02="E:\Games\Warcraft III Project Revolution\War3\The Sheep Attack\War3xlocal.mpq"
Type03=MPQ
Path03="E:\Games\Warcraft III Project Revolution\War3\The Sheep Attack\war3patch.mpq"
Type04=MPQ
Path04="E:\Games\Warcraft III Project Revolution\PRSCMOD\Revolution.mpq"
Type05=MPQ
Path05="E:\Games\Warcraft III Project Revolution\PRSCMOD\Sound.mpq"
Type06=Folder
Path06="E:\Games\Warcraft III Project Revolution\ProjectRevolusmash"
Type07=Folder
Path07="..\..\resources"
Type08=Folder
Path08="E:\Games\Warcraft III Project Revolution\PRSCMOD\PR-Maps"
[Map]
FilePath="ProjectRevolusmash.w3x"

View File

@ -87,7 +87,14 @@ public class MdxModel extends com.etheller.warsmash.viewer5.Model<MdxHandler> {
// Initialize the bounds. // Initialize the bounds.
final Extent extent = parser.getExtent(); final Extent extent = parser.getExtent();
this.bounds.fromExtents(extent.getMin(), extent.getMax()); final float[] min = extent.getMin();
final float[] max = extent.getMax();
for (int i = 0; i < 3; i++) {
if (min[i] > max[i]) {
min[i] = max[i] = 0;
}
}
this.bounds.fromExtents(min, max);
// Sequences // Sequences
this.sequences.addAll(parser.getSequences()); this.sequences.addAll(parser.getSequences());