File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -564,6 +564,10 @@ def __init__(self, contents):
564564 #: The map base height (what is that?). This value is 4096*Base Height in the editor (giving a decimal value).
565565 self .base_height = data .read_uint32 ()/ 4096
566566
567+ # Leave early so we dont barf. Turns out ggtracker doesnt need
568+ # any of the map data thats loaded below.
569+ return
570+
567571 #: Load screen type: 0 = default, 1 = custom
568572 self .load_screen_type = data .read_uint32 ()
569573
@@ -627,10 +631,6 @@ def __init__(self, contents):
627631 #: The number of players enabled via the data editor
628632 self .player_count = data .read_uint32 ()
629633
630- # Leave early so we dont barf. Turns out ggtracker doesnt need
631- # any of the map data thats loaded below.
632- return
633-
634634 #: A list of references to :class:`MapInfoPlayer` objects
635635 self .players = list ()
636636 for i in range (self .player_count ):
Original file line number Diff line number Diff line change @@ -432,6 +432,13 @@ def test_30(self):
432432 replay = sc2reader .load_replay ("test_replays/3.0.0.38215/second.SC2Replay" )
433433 replay = sc2reader .load_replay ("test_replays/3.0.0.38215/third.SC2Replay" )
434434
435+ def test_30_map (self ):
436+ for replayfilename in [
437+ "test_replays/3.0.0.38215/third.SC2Replay" ,
438+ ]:
439+ factory = sc2reader .factories .SC2Factory ()
440+ replay = factory .load_replay (replayfilename ,load_level = 1 ,load_map = True )
441+
435442
436443class TestGameEngine (unittest .TestCase ):
437444 class TestEvent (object ):
You can’t perform that action at this time.
0 commit comments