fixed the cavegenerator to work again.

This commit is contained in:
Mark de Wever 2006-11-08 19:59:11 +00:00
parent fc6d7d1165
commit 258c5ce03f
2 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@ Main TODO list is here
FIXED BUT NOT TESTED, NOTE the code looks ugly with the calls FIXED BUT NOT TESTED, NOTE the code looks ugly with the calls
to terrain_translation, this needs to be fixed after the to terrain_translation, this needs to be fixed after the
final conversion final conversion
* cavegen works again, can be tested with Httt scepter of fire
* The editor is broken has to be fixed, won't compiler * The editor is broken has to be fixed, won't compiler
* move all things name xx2 back to xx * move all things name xx2 back to xx
The rename is done to trace down the entire caller tree The rename is done to trace down the entire caller tree

View File

@ -109,7 +109,7 @@ config cave_map_generator::create_scenario(const std::vector<std::string>& /*arg
std::stringstream out; std::stringstream out;
for(size_t y = 0; y != height_; ++y) { for(size_t y = 0; y != height_; ++y) {
for(size_t x = 0; x != width_; ++x) { for(size_t x = 0; x != width_; ++x) {
out << map_[x][y]; out << terrain_translation().set_letter(map_[x][y]); //FIXME MdW, should this be done by the map converter??
} }
out << "\n"; out << "\n";
@ -361,7 +361,7 @@ void cave_map_generator::set_terrain(gamemap::location loc, terrain_translation:
void cave_map_generator::place_castle(const std::string& side, gamemap::location loc) void cave_map_generator::place_castle(const std::string& side, gamemap::location loc)
{ {
if(side != "") { if(side != "") {
set_terrain(loc,side[0]); set_terrain(loc, terrain_translation().get_letter(side));
} }
gamemap::location adj[6]; gamemap::location adj[6];