Re: [Wormux-dev] Bug in Sprite class ?

2005-12-13 Par sujet Matthieu Fertré
Hi, I have another problems here. Translations doesn't work but this is not the main problem. Let's see on an example, - I run Wormux - I press Play - I play ... then press Escape, then yes to quit - I arrive to main menu, the texts are correctly placed but the images of the buttons are mispla

Re: [Wormux-dev] Bug in Sprite class ?

2005-12-13 Par sujet Matthieu Fertré
I answer to myself... I have just correcting the misplacing image problem. This is a problem of camera, widget use image->Draw(x, y) instead of doing image->Blit(sdlwindow, x, y). The Draw method takes care of the camera, the Blit don't. But, I still have the problem for playing, it is quite

Re: [Wormux-dev] Bug in Sprite class ?

2005-12-13 Par sujet Matthieu Fertré
lds a écrit : Hi! It seems like the bug comes from the option menu. #3 0x08061f81 in Box::Draw (this=0x1e, mouse_x=519, mouse_y=737) at gui/box.cpp:54 The adress of the box is wrong. I have added some "assert" in the box class, which shows that a NULL Widget* is in the stdlist (myster

Re: [Wormux-dev] Bug in Sprite class ?

2005-12-13 Par sujet lds
Hi! I found the bug in the sky.. a SDL_FreeSurface(sky) was called at the end of a game, and not reloaded when begining the next game. So, the dirty fix I did is to not free the sky at all :p -> I send a bug on gna for this. For the 'translation' xml flag, I tried to make it work as it was workin