mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 06:30:44 +00:00
fixed the cavegenerator to work again.
This commit is contained in:
parent
fc6d7d1165
commit
258c5ce03f
@ -23,6 +23,7 @@ Main TODO list is here
|
||||
FIXED BUT NOT TESTED, NOTE the code looks ugly with the calls
|
||||
to terrain_translation, this needs to be fixed after the
|
||||
final conversion
|
||||
* cavegen works again, can be tested with Httt scepter of fire
|
||||
* The editor is broken has to be fixed, won't compiler
|
||||
* move all things name xx2 back to xx
|
||||
The rename is done to trace down the entire caller tree
|
||||
|
@ -109,7 +109,7 @@ config cave_map_generator::create_scenario(const std::vector<std::string>& /*arg
|
||||
std::stringstream out;
|
||||
for(size_t y = 0; y != height_; ++y) {
|
||||
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";
|
||||
@ -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)
|
||||
{
|
||||
if(side != "") {
|
||||
set_terrain(loc,side[0]);
|
||||
set_terrain(loc, terrain_translation().get_letter(side));
|
||||
}
|
||||
|
||||
gamemap::location adj[6];
|
||||
|
Loading…
x
Reference in New Issue
Block a user