Freezes. Just that

Greetings,

I’m writting a little wannabe-game :wink: It’s for a school project, so
please don’t expect anything fancy. So far things are going smooth, but
I’ve encountered a strange phenomenon: when I play the game it sometimes
just freeze. The tank stops, bullets too - a second or a few - and it
goes again.

My question: can anyone grab the sources (url below), compile it and
tell me if it happens to him? And if so, maybe a suggestion of solving
it?

http://yacoob.dnsalias.net/sakwa/rossdos-0.0.2.tgz

Thanks in advance,

Q.–
__ .--------------------------http://yacoob.dnsalias.net/cv.html---.
(oo) | Smoke crack. Worship Satan. Admin unix. – Pick any two. |
/ / \ | |
V__V'–.penguin#128720_____________________________________________.–’

I didnt have that happen but I did get a segfault. It happens when the
player thing is on the bottom of the screen and is shooting at the other
thing. gdb had this to say about it

Obrabiam pocisk 3 - (99,355)
Obrabiam pocisk 1 - (144,322)
Obrabiam pocisk 3 - (99,230)
Obrabiam pocisk 3 - (99,251)
Obrabiam pocisk 3 - (99,375)
[—] W tej chwili lata 3 pocisk?w.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 4078)]
0x8049563 in moveSprites () at game.c:129
129 len = sqrt( pow((p->x-pp->x),2) + pow((p->y-pp->y),2));

hope that helps

-danny-

Jakub Turski wrote:>Greetings,

I’m writting a little wannabe-game :wink: It’s for a school project, so
please don’t expect anything fancy. So far things are going smooth, but
I’ve encountered a strange phenomenon: when I play the game it sometimes
just freeze. The tank stops, bullets too - a second or a few - and it
goes again.

My question: can anyone grab the sources (url below), compile it and
tell me if it happens to him? And if so, maybe a suggestion of solving
it?

http://yacoob.dnsalias.net/sakwa/rossdos-0.0.2.tgz

Thanks in advance,

Q.

Hi,

I’m writting a little wannabe-game :wink: It’s for a school project, so
please don’t expect anything fancy. So far things are going smooth, but
I’ve encountered a strange phenomenon: when I play the game it sometimes
just freeze. The tank stops, bullets too - a second or a few - and it
goes again.

I’ve had this problems to. But only in windows and windowed mode as terminal
application (with a DOS-Box in the background). It only happend when I had a
lot of output (with printf or sth. like that…). Try removing the debug
messages and see if this was the problem…–
Alexander Lauser