From 88a62f93bb8bbc7bd99aa446f7dae7c755209bb2 Mon Sep 17 00:00:00 2001 From: QbeRoot Date: Sun, 9 Sep 2018 23:21:48 +0200 Subject: [PATCH] fixed changelog display --- changelog.xml | 8 ++++---- gctGenerator.js | 7 +++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/changelog.xml b/changelog.xml index 758e6cd..5c7b945 100644 --- a/changelog.xml +++ b/changelog.xml @@ -2,14 +2,14 @@ Sep 09, 2018 - - Updated Stage Loader - Fixed some repeated/missing segments in the presets and 'Not in Pinna' FMV skips for JP A. - Updated 'Level Select' Mashing through cutscenes with B no longer causes the game to reset. + + Updated Stage Loader + Fixed some repeated/missing segments in the presets and 'Not in Pinna' FMV skips for JP A. + Sep 05, 2018 diff --git a/gctGenerator.js b/gctGenerator.js index b5257ae..43fea63 100644 --- a/gctGenerator.js +++ b/gctGenerator.js @@ -215,16 +215,15 @@ function updateChangelog() { try { document.getElementById("lastupdate").innerHTML = "Last Updated: " + changelogData[0].getElementsByTagName("date")[0].textContent; - for (var i = 0; i < changelogData.length && i < 3;i++) { + for (var i = 0, changeCount = 0; i < changelogData.length && changeCount < 3;i++) { recentchanges += "

" + changelogData[i].getElementsByTagName("date")[0].textContent + ": "; var changes = changelogData[i].getElementsByTagName("change"); - for (var k = 0; k < changes.length && (i+k-1) < 3; k++) { + for (var k = 0; k < changes.length && changeCount < 3; k++) { recentchanges += changes[k].getElementsByTagName("head")[0].textContent + " "; + ++changeCount; } - i += k-1; - recentchanges += "

"; } } catch (err) {}