diff options
| author | Petr Mrázek | 2011-07-13 11:45:30 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-07-13 11:45:30 +0200 |
| commit | 630b746cfe8455ee89ef8af55013141aa70ccf87 (patch) | |
| tree | 5117a9bb7fec32452af2e2792cbdcce359395e1a /plugins/reveal.cpp | |
| parent | 1b011cdf6ce4331d731fd361fd82f367a9484435 (diff) | |
| download | dfhack-630b746cfe8455ee89ef8af55013141aa70ccf87.tar.gz dfhack-630b746cfe8455ee89ef8af55013141aa70ccf87.tar.bz2 dfhack-630b746cfe8455ee89ef8af55013141aa70ccf87.tar.xz | |
Integrate linenoise into Console - Linux part
Diffstat (limited to 'plugins/reveal.cpp')
| -rw-r--r-- | plugins/reveal.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/reveal.cpp b/plugins/reveal.cpp index 01cefb0d..474cdee5 100644 --- a/plugins/reveal.cpp +++ b/plugins/reveal.cpp @@ -104,7 +104,7 @@ DFhackCExport command_result reveal(DFHack::Core * c, std::vector<std::string> & if(revealed != NOT_REVEALED) { - dfout << "Map is already revealed or this is a different map." << std::endl; + c->con << "Map is already revealed or this is a different map." << std::endl; return CR_FAILURE; } @@ -115,20 +115,20 @@ DFhackCExport command_result reveal(DFHack::Core * c, std::vector<std::string> & World->ReadGameMode(gm); if(gm.g_mode != GAMEMODE_DWARF) { - dfout << "Only in fortress mode." << std::endl; + c->con << "Only in fortress mode." << std::endl; c->Resume(); return CR_FAILURE; } if(!Maps->Start()) { - dfout << "Can't init map." << std::endl; + c->con << "Can't init map." << std::endl; c->Resume(); return CR_FAILURE; } if(no_hell && !Maps->StartFeatures()) { - dfout << "Unable to read local features; can't reveal map safely" << std::endl; + c->con << "Unable to read local features; can't reveal map safely" << std::endl; c->Resume(); return CR_FAILURE; } @@ -175,10 +175,10 @@ DFhackCExport command_result reveal(DFHack::Core * c, std::vector<std::string> & World->SetPauseState(true); } c->Resume(); - dfout << "Map revealed." << std::endl; + c->con << "Map revealed." << std::endl; if(!no_hell) - dfout << "Unpausing can unleash the forces of hell, so it has been temporarily disabled." << std::endl; - dfout << "Run 'unreveal' to revert to previous state." << std::endl; + c->con << "Unpausing can unleash the forces of hell, so it has been temporarily disabled." << std::endl; + c->con << "Run 'unreveal' to revert to previous state." << std::endl; return CR_OK; } @@ -187,7 +187,7 @@ DFhackCExport command_result unreveal(DFHack::Core * c, std::vector<std::string> DFHack::designations40d designations; if(!revealed) { - dfout << "There's nothing to revert!" << std::endl; + c->con << "There's nothing to revert!" << std::endl; return CR_FAILURE; } c->Suspend(); @@ -197,14 +197,14 @@ DFhackCExport command_result unreveal(DFHack::Core * c, std::vector<std::string> World->ReadGameMode(gm); if(gm.g_mode != GAMEMODE_DWARF) { - dfout << "Only in fortress mode." << std::endl; + c->con << "Only in fortress mode." << std::endl; c->Resume(); return CR_FAILURE; } Maps = c->getMaps(); if(!Maps->Start()) { - dfout << "Can't init map." << std::endl; + c->con << "Can't init map." << std::endl; c->Resume(); return CR_FAILURE; } @@ -214,7 +214,7 @@ DFhackCExport command_result unreveal(DFHack::Core * c, std::vector<std::string> Maps->getSize(x_max_b,y_max_b,z_max_b); if(x_max != x_max_b || y_max != y_max_b || z_max != z_max_b) { - dfout << "The map is not of the same size..." << std::endl; + c->con << "The map is not of the same size..." << std::endl; c->Resume(); return CR_FAILURE; } @@ -233,7 +233,7 @@ DFhackCExport command_result unreveal(DFHack::Core * c, std::vector<std::string> // give back memory. hidesaved.clear(); revealed = NOT_REVEALED; - dfout << "Map hidden!" << std::endl; + c->con << "Map hidden!" << std::endl; c->Resume(); return CR_OK; } |
