dan200 / Redirection

A puzzle game
GNU General Public License v3.0
51 stars 9 forks source link

Level selector page issue #33

Closed Vswe closed 9 years ago

Vswe commented 9 years ago

The "Next page" arrow in the level selector in the level editor suddenly stopped working. The previously last page had been filled (6 levels) so I wanted to go to the page after that to create a new level.

There were nothing wrong with the button itself, if going back a page one could successfully go forward again. It rather looked like it was calculating the number of pages wrong. However, it didn't seem like it just ignored the "Create new" "level" when calculating max pages, I have successfully moved between pages like that before (when the "create new" one is on its own page). The problem occurred when I had 48 levels (i.e. 8 pages).

I "solved" it by creating a new level manually and editing the .campaign file to add it. Now the new page of levels were added successfully and I could use the arrow without a problem.

dan200 commented 9 years ago

Just looked at the code. The bug was as described, but it was introduced inbetween the 0.6.1.X releases and 0.6.2, my suspicion is this is the first new page you've added since the full 0.6.2 release. Fixed it now.

Vswe commented 9 years ago

Your suspicion is correct, first time I need a new page since the public release of the level selector.