summaryrefslogtreecommitdiffstats
path: root/sigmodr/widgets/MapWarpUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-02-24 21:07:11 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-02-24 21:07:11 -0500
commit5747fe1b2f1b0f1677056dd3f4d36b2910d80630 (patch)
tree8f3899aecf76ad59e23ef2ef6e2d21c82aef8142 /sigmodr/widgets/MapWarpUI.cpp
parentff2b57f4a557f8e3896f002e554d76f327fa1ac1 (diff)
Renamed Sigmod to Game where needed
Diffstat (limited to 'sigmodr/widgets/MapWarpUI.cpp')
-rw-r--r--sigmodr/widgets/MapWarpUI.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sigmodr/widgets/MapWarpUI.cpp b/sigmodr/widgets/MapWarpUI.cpp
index 98287112..fd4ebc5d 100644
--- a/sigmodr/widgets/MapWarpUI.cpp
+++ b/sigmodr/widgets/MapWarpUI.cpp
@@ -19,9 +19,9 @@
#include "MapWarpUI.h"
// Sigmod includes
+#include <sigmod/Game.h>
#include <sigmod/Map.h>
#include <sigmod/MapWarp.h>
-#include <sigmod/Sigmod.h>
Sigmodr::Widgets::MapWarpUI::MapWarpUI(Sigmod::MapWarp* warp, QWidget* parent) :
ObjectUI(parent),
@@ -47,9 +47,9 @@ void Sigmodr::Widgets::MapWarpUI::refreshGui()
{
const bool blocked = varToMap->blockSignals(true);
varToMap->clear();
- for (int i = 0; i < sigmod()->mapCount(); ++i)
+ for (int i = 0; i < game()->mapCount(); ++i)
{
- const Sigmod::Map* map = sigmod()->map(i);
+ const Sigmod::Map* map = game()->map(i);
varToMap->addItem(map->name(), map->id());
}
varToMap->blockSignals(blocked);
@@ -66,7 +66,7 @@ void Sigmodr::Widgets::MapWarpUI::setGui()
{
const bool blocked = varToWarp->blockSignals(true);
varToWarp->clear();
- const Sigmod::Map* map = sigmod()->mapById(qobject_cast<Sigmod::MapWarp*>(modified())->toMap());
+ const Sigmod::Map* map = game()->mapById(qobject_cast<Sigmod::MapWarp*>(modified())->toMap());
if (map)
{
for (int i = 0; i < map->warpCount(); ++i)