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):
564
564
#: The map base height (what is that?). This value is 4096*Base Height in the editor (giving a decimal value).
565
565
self .base_height = data .read_uint32 ()/ 4096
566
566
567
+ # Leave early so we dont barf. Turns out ggtracker doesnt need
568
+ # any of the map data thats loaded below.
569
+ return
570
+
567
571
#: Load screen type: 0 = default, 1 = custom
568
572
self .load_screen_type = data .read_uint32 ()
569
573
@@ -627,10 +631,6 @@ def __init__(self, contents):
627
631
#: The number of players enabled via the data editor
628
632
self .player_count = data .read_uint32 ()
629
633
630
- # Leave early so we dont barf. Turns out ggtracker doesnt need
631
- # any of the map data thats loaded below.
632
- return
633
-
634
634
#: A list of references to :class:`MapInfoPlayer` objects
635
635
self .players = list ()
636
636
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):
432
432
replay = sc2reader .load_replay ("test_replays/3.0.0.38215/second.SC2Replay" )
433
433
replay = sc2reader .load_replay ("test_replays/3.0.0.38215/third.SC2Replay" )
434
434
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
+
435
442
436
443
class TestGameEngine (unittest .TestCase ):
437
444
class TestEvent (object ):
You can’t perform that action at this time.
0 commit comments