mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 02:23:47 +00:00
Fix eslint rule 'no-floating-decimal'
eslint --no-config-lookup --fix --rule '"no-floating-decimal": 1' Ref: #7812 Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
@@ -72,7 +72,7 @@ function* GenerateMap(mapSettings)
|
||||
const clBaseResource = g_Map.createTileClass();
|
||||
|
||||
const pattern = mapSettings.PlayerPlacement;
|
||||
const teamDist = (pattern == 'river') ? .55 : .35;
|
||||
const teamDist = (pattern == 'river') ? 0.55 : 0.35;
|
||||
const [playerIDs, playerPosition] =
|
||||
playerPlacementByPattern(
|
||||
pattern,
|
||||
|
||||
@@ -60,7 +60,7 @@ function* GenerateMap(mapSettings)
|
||||
const clCP = g_Map.createTileClass();
|
||||
|
||||
const pattern = mapSettings.PlayerPlacement;
|
||||
const teamDist = (pattern == "river") ? .50 : .35;
|
||||
const teamDist = (pattern == "river") ? 0.50 : 0.35;
|
||||
const [playerIDs, playerPosition] =
|
||||
playerPlacementByPattern(
|
||||
pattern,
|
||||
|
||||
Reference in New Issue
Block a user