mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-12 02:13:57 +00:00
Fix spelling typos and improve code quality (#2186)
## Description: This PR fixes several bugs and improves code quality: - Fix spelling typos: "recieved" → "received" in Transport.ts and GameServer.ts - Fix comment typo: "isn'te" → "isn't" in TerrainLayer.ts - Improve WebSocket cleanup in Transport.ts leaveGame() by replacing empty onclose handler with proper killExistingSocket() call - Add console.warn for image decode failures in StructureLayer.ts instead of silent catch - Remove commented dead code in DevConfig.ts ## Testing All 288 tests pass. Development build completes successfully. No breaking changes. ## Files Changed - src/client/Transport.ts - src/server/GameServer.ts - src/client/graphics/layers/TerrainLayer.ts - src/client/graphics/layers/StructureLayer.ts - src/core/configuration/DevConfig.ts ## Checklist: - [x] I have added screenshots for all UI updates (N/A - no UI changes) - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file (N/A - no user-facing text) - [x] I have added relevant tests to the test directory (All 288 existing tests pass - no new tests needed for typo fixes) - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced Discord: hiphex_33496 Hiphex Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -826,7 +826,7 @@ export class GameServer {
|
||||
|
||||
const ratio = `${potentialWinner.ips.size}/${activeUniqueIPs.size}`;
|
||||
this.log.info(
|
||||
`recieved winner vote ${clientMsg.winner}, ${ratio} votes for this winner`,
|
||||
`received winner vote ${clientMsg.winner}, ${ratio} votes for this winner`,
|
||||
{
|
||||
clientID: client.clientID,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user