Skip to content

Commit c0b0d08

Browse files
JimZhouZZYGrimmys
authored andcommitted
Solve issue #89
1 parent 8ae050e commit c0b0d08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/load_from_xml_manager.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ def load_events(events_el, gap_x, gap_y):
965965
events[event.tag]["new_players"] = [
966966
{
967967
"name": player_element.find("name").text.strip(),
968-
"position": (
968+
"position": Position(
969969
int(player_element.find("position/x").text.strip()) * TILE_SIZE
970970
+ gap_x,
971971
int(player_element.find("position/y").text.strip()) * TILE_SIZE
@@ -1066,7 +1066,7 @@ def load_player(player_element, from_save):
10661066
player.items = inventory
10671067
player.hit_points = current_hp
10681068
if from_save:
1069-
position = (
1069+
position = Position(
10701070
int(player_element.find("position/x").text.strip()) * TILE_SIZE,
10711071
int(player_element.find("position/y").text.strip()) * TILE_SIZE,
10721072
)

0 commit comments

Comments
 (0)