diff options
Diffstat (limited to 'src/npc.rs')
-rw-r--r-- | src/npc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -72,8 +72,8 @@ impl NPC { pub fn build_npcs(tileset: &Tileset, map: &Map) -> Vec<NPC> { let mut npcs = Vec::new(); - for (_name, position) in map.get_spawns() { - npcs.push(NPC::new(tileset, position, map.get_dimensions())); + for point in map.get_spawn_points("peasant") { + npcs.push(NPC::new(tileset, point, map.get_dimensions())); } npcs |