Infinite loop

Infinite loop

Postby MCMic » 26 Jul 2011, 10:16

I use revision 77 of the svn and the game does not work : loading of levels is an infinite loop!
The infinite loop seems to be in Levels.cpp:63
User avatar
MCMic
 
Posts: 723
Joined: 05 Jan 2010, 17:40

Re: Infinite loop

Postby Edward_Lii » 26 Jul 2011, 11:10

Hello MCMic,

MCMic {l Wrote}:I use revision 77 of the svn and the game does not work : loading of levels is an infinite loop!
The infinite loop seems to be in Levels.cpp:63

The loading of levels contains a lot of while loops, so I guess it gets stuck there. :(
I've changed the while loops from:
{l Code}: {l Select All Code}
while(!fin.eof())
to:
{l Code}: {l Select All Code}
while(!fin.eof() & !fin.fail())


I hope this helps, the change is in revision 78.
From,
Edward_Lii
User avatar
Edward_Lii
MnMS Moderator
 
Posts: 777
Joined: 20 Dec 2010, 16:46

Re: Infinite loop

Postby MCMic » 26 Jul 2011, 16:51

Thanks, it works :-)
User avatar
MCMic
 
Posts: 723
Joined: 05 Jan 2010, 17:40

Re: Infinite loop

Postby charlie » 27 Jul 2011, 01:23

This gave me an idea for the game. An upside down shadow - or even a rotated shadow. Or a way to rotate the shadow.
Free Gamer - it's the dogz
Vexi - web UI platform
User avatar
charlie
Global Moderator
 
Posts: 2131
Joined: 02 Dec 2009, 11:56
Location: Manchester, UK

Re: Infinite loop

Postby acme_pjz » 27 Jul 2011, 05:28

Hi,

charlie {l Wrote}:This gave me an idea for the game. An upside down shadow - or even a rotated shadow. Or a way to rotate the shadow.


Good idea :) though we have to write some more code in game physics in order to implement this feature :)
Some of my open source games on GitHub
User avatar
acme_pjz
 
Posts: 665
Joined: 10 Dec 2009, 15:32
Location: PeeKing, China

Who is online

Users browsing this forum: No registered users and 1 guest

cron