diff options
Diffstat (limited to 'scripts/map/DungeonGenerator.cs')
| -rw-r--r-- | scripts/map/DungeonGenerator.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/map/DungeonGenerator.cs b/scripts/map/DungeonGenerator.cs index 0d94724..68bde06 100644 --- a/scripts/map/DungeonGenerator.cs +++ b/scripts/map/DungeonGenerator.cs @@ -50,7 +50,10 @@ public partial class DungeonGenerator : Node public MapData GenerateDungeon(Player player) { - MapData data = new MapData(width, height); + MapData data = new MapData(width, height, player); + + data.InsertActor(player); + player.Map_Data = data; MapDivision root = new MapDivision(0, 0, width, height); |
