debugged delaunay, problem was in referencing slice of connectors instead of copying

This commit is contained in:
anton.gurov
2019-11-14 18:53:41 +03:00
parent 04da543c30
commit 0f367eaf96
3 changed files with 66 additions and 13 deletions

View File

@ -2,6 +2,7 @@ package gamemap
import (
"encoding/json"
"fmt"
"io/ioutil"
"lab.zaar.be/thefish/alchemyst-go/engine/items"
"lab.zaar.be/thefish/alchemyst-go/engine/mob"
@ -112,6 +113,8 @@ func (pfbl PrefabLoader) PrefabRoomsList() []Room {
}
}
//add room to list
fmt.Printf("PREFAB room append: ", room.String())
rooms = append(rooms, room)
}
return rooms