WorldMap constructor, from src/worldmap/worldmap.cxx, about line 88:

>   std::string node;
>   if (StatManager::instance()->get_string("current-tutorial-node", node))
>     {
>       NodeId id = path_graph->lookup_node(node);
>       if (id == NoNode)
>         {
>           pingus->set_position(0);
>         }
>       else
>         {
>           pingus->set_position(id);
>         }
>     }
>   else
>     {  // FIXME: This should not be hardcoded, but instead be noted in the
>       // savegame or worldmap
>       pingus->set_position(0);
>     }

The particular file loaded by the WorldMap code can be changed, but the
current position is global.  This is probably an assumption that we're
always running the tutorial.  (Perhaps some other code somewhere
manually manages the position of subsequent WorldMaps.)

Fix: probably tie at least some stats to the particular worldmaps or
levels.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to