Update of bug #11826 (project wormux):
Category: None => Interface
Status: None => Ready For Test
Assigned to: None => drayan
_______________________________________________________
Follow-up Comment #1:
Yes, confirmed :
#0 0x3d4574d7 in ?? ()
#1 0x080eef17 in Ground::IsEmpty (this=0x82153a8, [EMAIL PROTECTED]) at
map/ground.cpp:73
#2 0x080544b4 in Map::IsInVacuum (this=0x82153a0, x=1299, y=1282) at
./map/map.h:93
#3 0x080f009b in Map::HorizontalLine_IsInVacuum (this=0x82153a0, ox=1299,
y=1282, width=20) at map/map.cpp:179
#4 0x080f04e0 in Map::RectIsInVacuum (this=0x82153a0, [EMAIL PROTECTED]) at
map/map.cpp:217
#5 0x0814fce1 in PhysicalObj::FootsInVacuumXY (this=0x82dbaf8,
[EMAIL PROTECTED]) at object/physical_obj.cpp:740
#6 0x08050b7f in PhysicalObj::FootsInVacuum (this=0x82dbaf8) at
./object/physical_obj.h:168
#7 0x08151849 in PhysicalObj::SetXY (this=0x82dbaf8, [EMAIL PROTECTED])
at object/physical_obj.cpp:113
#8 0x08102bb4 in Wind::RandomizeParticlesPos (this=0x8215828) at
map/wind.cpp:238
#9 0x08103c45 in Wind::Reset (this=0x8215828) at map/wind.cpp:198
#10 0x0811f554 in OptionMenu::SaveOptions (this=0xbf9052b4) at
menu/options_menu.cpp:272
#11 0x0811f8b3 in OptionMenu::signal_ok (this=0xbf9052b4) at
menu/options_menu.cpp:319
#12 0x081126ba in Menu::mouse_ok (this=0xbf9052b4) at menu/menu.cpp:99
#13 0x08111e4e in Menu::BasicOnClickUp (this=0xbf9052b4,
[EMAIL PROTECTED]) at menu/menu.cpp:116
#14 0x081120f9 in Menu::Run (this=0xbf9052b4, skip_menu=false) at
menu/menu.cpp:257
#15 0x080d4a2c in AppWormux::Main (this=0x82234c0) at main.cpp:145
#16 0x080d4fa8 in main (argc=1, argv=0xbf905444) at main.cpp:421
When we save the config, we reset wind without looking if the game is
launched. For a strange reason, It does not crash if you didn't have launched
a previous game.
Now, before resetting the wind, we check if the game is launched. If not
launched => skip it !
[EMAIL PROTECTED]:~/dev/wormux/src/menu$ svn diff
Index: options_menu.cpp
===================================================================
--- options_menu.cpp (révision 4621)
+++ options_menu.cpp (copie de travail)
@@ -24,6 +24,7 @@
#include "include/constant.h"
+#include "game/game.h"
#include "game/game_mode.h"
@@ -267,7 +268,8 @@
config->SetDisplayWindParticles(opt_display_wind_particles->GetValue());
- wind.Reset();
+ if(!Game::GetInstance()->IsGameFinished())
+ wind.Reset();
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?11826>
_______________________________________________
Message posté via/par Gna!
http://gna.org/
_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna