~ubuntu-branches/ubuntu/saucy/lordsawar/saucy

« back to all changes in this revision

Viewing changes to src/editor/select-hidden-ruin-dialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese, Barry deFreese
  • Date: 2008-12-20 13:52:12 UTC
  • mfrom: (1.1.6 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20081220135212-noeb2w3y98ebo7o9
Tags: 0.1.4-1
[ Barry deFreese ]
* New upstream release.
* Move 0.0.8-2.1 changelog entry to correct point in changelog.
* Make lordsawar-data suggest lordsawar.
* Update my e-mail address.
* Add build-depends on intltool, uuid-dev, and libboost-dev.
* Don't install locales since there are no translations currently.
* Add simple man page for new lordsawar-pbm binary.
* Drop gcc4.3 patches as they have been fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "select-hidden-ruin-dialog.h"
28
28
 
29
29
#include "glade-helpers.h"
30
 
#include "../gui/input-helpers.h"
31
 
#include "../ucompose.hpp"
32
 
#include "../defs.h"
33
 
#include "../ruin.h"
34
 
#include "../ruinlist.h"
35
 
#include "../playerlist.h"
 
30
#include "gui/input-helpers.h"
 
31
#include "ucompose.hpp"
 
32
#include "defs.h"
 
33
#include "ruin.h"
 
34
#include "ruinlist.h"
 
35
#include "playerlist.h"
36
36
 
37
37
SelectHiddenRuinDialog::SelectHiddenRuinDialog()
38
38
{
57
57
    Ruinlist *ruinlist = Ruinlist::getInstance();
58
58
    Ruinlist::iterator iter = ruinlist->begin();
59
59
    for (;iter != ruinlist->end(); iter++)
60
 
      if ((*iter).isHidden() && 
61
 
          (*iter).getOwner() == Playerlist::getInstance()->getNeutral())
62
 
        addHiddenRuin(&*iter);
 
60
      if ((*iter)->isHidden() && 
 
61
          (*iter)->getOwner() == Playerlist::getInstance()->getNeutral())
 
62
        addHiddenRuin(*iter);
63
63
      
64
64
    Uint32 max = ruinlist->size();
65
65
    if (max)