From 21f01c7abb45fc97eb4e1bbf39d6fda1b8de48fc Mon Sep 17 00:00:00 2001 From: mcmlxxix <> Date: Wed, 17 Feb 2010 01:49:01 +0000 Subject: [PATCH] Fixed date selection bug --- xtrn/bublbogl/boggle.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xtrn/bublbogl/boggle.js b/xtrn/bublbogl/boggle.js index 3b2d0722d2..95dc1702c8 100644 --- a/xtrn/bublbogl/boggle.js +++ b/xtrn/bublbogl/boggle.js @@ -42,6 +42,7 @@ function Boggle() var calendar; var month; var current; + var today; var lobby; var players; var player; @@ -60,6 +61,7 @@ function Boggle() month=new MonthData(); lobby=new Lobby(1,1); current=calendar.selected; + today=calendar.selected; } function SplashStart() { @@ -92,7 +94,7 @@ function Boggle() var newdate=console.getnum(calendar.daysinmonth); if(newdate>0) { - if(newdate>current+max_future) + if(newdate>today+max_future) { ShowMessage("\1r\1hYou cannot play more than " + max_future + " days ahead"); return false; @@ -112,7 +114,7 @@ function Boggle() ShowMessage("\1r\1hUse Arrow keys to change date and [\1n\1rEnter\1h] to select"); if(calendar.SelectDay(k)) { - if(calendar.selected>current+max_future) + if(calendar.selected>today+max_future) { ShowMessage("\1r\1hYou cannot play more than " + max_future + " days ahead"); calendar.drawDay(calendar.selected); -- GitLab