Skip to content

Commit

Permalink
Remove plane-script relations for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jskz committed Oct 23, 2021
1 parent 3a6f418 commit 318ae46
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/scripting.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,30 +182,6 @@ func (game *Game) LoadScriptsFromDatabase() error {
room.script = game.scripts[scriptId]
}

log.Println("Loading plane-script relations from database...")
rows, err = game.db.Query(`
SELECT
plane_script.plane_id,
plane_script.script_id
FROM
room_script
`)
if err != nil {
return err
}

defer rows.Close()

for rows.Next() {
var planeId uint
var scriptId uint

err := rows.Scan(&planeId, &scriptId)
if err != nil {
return err
}
}

return nil
}

Expand Down

0 comments on commit 318ae46

Please sign in to comment.