[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [glob2-devel] Optimization suggestions
From: |
Kai Antweiler |
Subject: |
Re: [glob2-devel] Optimization suggestions |
Date: |
Wed, 5 Sep 2007 22:12:55 +0200 |
> > For some reason I thought it might be a server-mode thing...
>
> ...The reason being that "glob2 --help" just says:
> -nox <game file name> runs the game without using the X server
Yes, I asked Nuage last year to include more options. Until then I used
a save game where the human player was about to loose and called
"glob2 --nox" from inside a bash for loop.
> Anyway, there seems to be a problem with that option - it triggers a
> segfault right away, here:
> 0x080f0ce5 in GameGUI (this=0xbf7f3a54) at src/GameGUI.cpp:132
> 132 minimap(globalContainer->gfx->getW()-128, 0, 128, 14,
> Minimap::HideFOW)
> - because globalContainer->gfx == NULL.
Not again. Options that are not used become bugs really fast in glob2.
(This will happen to Stephs critters too.)
OK, I can't fix this because my valgrind isn't working.
You can change line 132 to:
minimap(globalContainer->runNoX ? 0 :
globalContainer->gfx->getW()-128, 0, 128, 14, Minimap::HideFOW)
I don't know whether 0 is a good value.
Someone else has to fix this, or we have to wait until gentoo uses a
newer valgrind.
--
Kai Antweiler
- Re: [glob2-devel] Optimization suggestions (Map::updateLocalGradient()), (continued)
- Message not available
- Re: [glob2-devel] Optimization suggestions (Map::updateLocalGradient()), Erik Søe Sørensen, 2007/09/05
- [glob2-devel] More Map code improvements, Erik Søe Sørensen, 2007/09/05
- Re: [glob2-devel] More Map code improvements, Kai Antweiler, 2007/09/05
- Re: [glob2-devel] More Map code improvements, Bradley Arsenault, 2007/09/05
- Re: [glob2-devel] More Map code improvements, Kai Antweiler, 2007/09/05
- documentation for gradients (was: [glob2-devel] More Map code improvements), Joe Wells, 2007/09/05
- Re: documentation for gradients (was: [glob2-devel] More Map code improvements), Kieran P, 2007/09/06
- Re: [glob2-devel] Optimization suggestions (Map::updateLocalGradient()), Kai Antweiler, 2007/09/05
- Re: [glob2-devel] Optimization suggestions, Erik Søe Sørensen, 2007/09/05
- Re: [glob2-devel] Optimization suggestions, Erik Søe Sørensen, 2007/09/05
- Re: [glob2-devel] Optimization suggestions,
Kai Antweiler <=
- Re: [glob2-devel] Optimization suggestions, Bradley Arsenault, 2007/09/05
- Re: [glob2-devel] Optimization suggestions, Kai Antweiler, 2007/09/05
- Re: [glob2-devel] Optimization suggestions, Bradley Arsenault, 2007/09/05
- Re: [glob2-devel] Optimization suggestions, Kai Antweiler, 2007/09/06
- Re: [glob2-devel] Optimization suggestions, Bradley Arsenault, 2007/09/06
- Re: [glob2-devel] Optimization suggestions, Erik Søe Sørensen, 2007/09/07
- Re: [glob2-devel] Optimization suggestions, Kai Antweiler, 2007/09/07
- Re: [glob2-devel] Optimization suggestions, Bradley Arsenault, 2007/09/07
- Re: [glob2-devel] Optimization suggestions, Kai Antweiler, 2007/09/07
- [glob2-devel] More flags (--nox), Erik Søe Sørensen, 2007/09/07