summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-06-30 13:24:33 +0200
committerTor Andersson <tor@ccxvii.net>2022-06-30 18:36:17 +0200
commit3e882f6480dd1c7e3148a1e6caf45d7c7568b75b (patch)
treed259d5b203a2f84ffc79667de624150c30d04c6e /server.js
parent44161ea4ff9e8910c6da285a4d1b242ce9372192 (diff)
downloadserver-3e882f6480dd1c7e3148a1e6caf45d7c7568b75b.tar.gz
Remove unused argument to rules.setup().
Diffstat (limited to 'server.js')
-rw-r--r--server.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server.js b/server.js
index d95d72a..e852a61 100644
--- a/server.js
+++ b/server.js
@@ -1398,7 +1398,7 @@ function start_game(game_id, game) {
}
let options = game.options ? JSON.parse(game.options) : {}
let seed = random_seed()
- let state = RULES[game.title_id].setup(seed, game.scenario, options, players)
+ let state = RULES[game.title_id].setup(seed, game.scenario, options)
put_replay(game_id, null, 'setup', [seed, game.scenario, options])
SQL_UPDATE_GAME_RESULT.run(1, null, game_id)
SQL_UPDATE_GAME_STATE.run(game_id, JSON.stringify(state), state.active)
@@ -1907,8 +1907,8 @@ function on_restart(socket, scenario) {
try {
let seed = random_seed()
let options = JSON.parse(SQL_SELECT_GAME.get(socket.game_id).options)
- let state = socket.rules.setup(seed, scenario, options, socket.players)
- put_replay(socket.game_id, null, 'setup', [seed, scenario, options, socket.players])
+ let state = socket.rules.setup(seed, scenario, options)
+ put_replay(socket.game_id, null, 'setup', [seed, scenario, options])
for (let other of clients[socket.game_id]) {
other.seen = 0
send_state(other, state)