Checkpoint Eibenreith ink architecture
This commit is contained in:
Vendored
+2
-1
@@ -261,6 +261,7 @@ io.on('connection', (socket) => {
|
||||
return;
|
||||
}
|
||||
const input = String(data?.command ?? '').trim();
|
||||
const requestId = Number(data?.requestId || 0);
|
||||
if (!input)
|
||||
return;
|
||||
debugLog(`playerCommand from ${socket.id}: ${input}`);
|
||||
@@ -271,7 +272,7 @@ io.on('connection', (socket) => {
|
||||
paragraphs: turn.paragraphs.length,
|
||||
statusLine: turn.gameState?.statusLine,
|
||||
});
|
||||
socket.emit('narrativeResponse', toClientTurn(turn));
|
||||
socket.emit('narrativeResponse', withClientRequestId(toClientTurn(turn), Number.isInteger(requestId) && requestId > 0 ? requestId : undefined));
|
||||
}
|
||||
catch (error) {
|
||||
console.error('[zcode] playerCommand error:', error);
|
||||
|
||||
Reference in New Issue
Block a user