From c8c1818d24dddc1ec6ceff696bd183e8d3154cb4 Mon Sep 17 00:00:00 2001 From: Humza Shahid Date: Wed, 22 Jan 2025 00:01:34 +0000 Subject: [PATCH] fix platform data in game-type.sml (platform 2 and platform 5 had their IDs swapped for testing purposes, but they kept their previous position in the platforms vector, and because we rely on platforms being ordered and being able to perform binary search in the platforms vector, that caused inconsistencies --- fcore/game-type.sml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fcore/game-type.sml b/fcore/game-type.sml index 38eb1a2..c8a8607 100644 --- a/fcore/game-type.sml +++ b/fcore/game-type.sml @@ -162,10 +162,10 @@ struct val wallTree = Wall.generateTree walls val plat1 = {id = 1, x = 155, y = 911, width = 199} - val plat5 = {id = 2, x = 355, y = 759, width = 555} + val plat2 = {id = 2, x = 355, y = 759, width = 555} val plat3 = {id = 3, x = 355, y = 659, width = 555} val plat4 = {id = 4, x = 155, y = 855, width = 199} - val plat2 = {id = 5, x = 155, y = 811, width = 199} + val plat5 = {id = 5, x = 155, y = 811, width = 199} val plat6 = {id = 6, x = 155, y = 710, width = 199} val platforms = Vector.fromList [plat1, plat2, plat3, plat4, plat5, plat6] val platformTree = Platform.generateTree platforms