diff options
| author | Petr Mrázek | 2012-02-27 20:04:19 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2012-02-27 20:04:19 +0100 |
| commit | 44107ca9d4f9c33ce9564acb48ca954b5f473524 (patch) | |
| tree | 1ece6d17f7f703dab7735537a3e7a21cbae17596 /MapLoading.cpp | |
| parent | ca35c82579d1e3e0ce227ccdaeb71c2a6dbf1cb9 (diff) | |
| download | stonesense-44107ca9d4f9c33ce9564acb48ca954b5f473524.tar.gz stonesense-44107ca9d4f9c33ce9564acb48ca954b5f473524.tar.bz2 stonesense-44107ca9d4f9c33ce9564acb48ca954b5f473524.tar.xz | |
DF colors tweak.
Diffstat (limited to 'MapLoading.cpp')
| -rw-r--r-- | MapLoading.cpp | 45 |
1 files changed, 17 insertions, 28 deletions
diff --git a/MapLoading.cpp b/MapLoading.cpp index ec40e59..f8c4f8b 100644 --- a/MapLoading.cpp +++ b/MapLoading.cpp @@ -770,34 +770,23 @@ WorldSegment* ReadMapSegment(DFHack::Core &DF, int x, int y, int z, int sizex, i //translate constructions
changeConstructionMaterials(segment, &allConstructions);
- uint32_t numengravings = 0;
- try
- {
- numengravings = Engravings::getCount();
- if (numengravings)
- {
- df::engraving * engraved;
- index = 0;
- Block * b = 0;
- while(index < numengravings)
- {
- engraved = Engravings::getEngraving(index);
- df::coord pos = engraved->pos;
- if(segment->CoordinateInsideSegment(pos.x, pos.y, pos.z))
- {
- b = segment->getBlock(pos.x, pos.y, pos.z);
- b->engraving_character = engraved->tile;
- b->engraving_flags = engraved->flags;
- b->engraving_quality = engraved->quality;
- }
- index++;
- }
- }
- }
- catch(exception &e)
- {
- WriteErr("DFhack exception: %s\n", e.what());
- }
+ uint32_t numengravings = Engravings::getCount();
+ df::engraving * engraved;
+ index = 0;
+ Block * b = 0;
+ while(index < numengravings)
+ {
+ engraved = Engravings::getEngraving(index);
+ df::coord pos = engraved->pos;
+ if(segment->CoordinateInsideSegment(pos.x, pos.y, pos.z))
+ {
+ b = segment->getBlock(pos.x, pos.y, pos.z);
+ b->engraving_character = engraved->tile;
+ b->engraving_flags = engraved->flags;
+ b->engraving_quality = engraved->quality;
+ }
+ index++;
+ }
//Read Creatures
if(!config.skipCreatures)
|
