summaryrefslogtreecommitdiff
path: root/src/npc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/npc.rs')
-rw-r--r--src/npc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/npc.rs b/src/npc.rs
index c31f305..316908b 100644
--- a/src/npc.rs
+++ b/src/npc.rs
@@ -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