Page 1 of 1

Infinite loop

PostPosted: 26 Jul 2011, 10:16
by MCMic
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

Re: Infinite loop

PostPosted: 26 Jul 2011, 11:10
by Edward_Lii
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.

Re: Infinite loop

PostPosted: 26 Jul 2011, 16:51
by MCMic
Thanks, it works :-)

Re: Infinite loop

PostPosted: 27 Jul 2011, 01:23
by charlie
This gave me an idea for the game. An upside down shadow - or even a rotated shadow. Or a way to rotate the shadow.

Re: Infinite loop

PostPosted: 27 Jul 2011, 05:28
by acme_pjz
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 :)