Several tweaks/fixes
- Nuke some uses of strcpy, sprintf, etc; current info strings in the scenario editor are now stored as std::string instead of C-strings. - A smarter method of calculating the "erase" terrain for a given terrain type. In case of impassable spaces, trims, and walkways, instead of using the ground terrain, the trim terrain (if any) is used as the erase terrain; if there's no trim, ground 0 (cave, by default) is used. The method of determining if two terrains are essentially the same (ie, whether to paint or erase) has also been improved a little. - Also, to reduce confusion, the erase terrain is now shown beneath the paint terrain. Terrain changes: - Add "archetype" flag as a better way of determining which amongst a set of terrains sharing the same ground type should be considered as the most basic terrain of that ground type. It's automatically applied to any terrains using original graphics when importing an old scenario; generally, any with no terrain special will be marked as an archetype, but if the lava graphic was used, it's instead any with a terrain special. It's a crude method that may easily break, but probably not possible to do better. - When importing old scenarios, set the two walkways to be separate ground types while the crops should have grass as their ground, and the conveyors have cave. - Fix fly, boat, block horse LEDs not being cleared if a terrain lacks that flag when using the arrow buttons. This could lead to terrains accidentally picking up the flags of nearby terrains in the list. - Fix the block horse flag was not correctly saved when closing the dialog. - Fix the block horse flag not being correctly loaded from the scenario file
This commit is contained in:
@@ -153,6 +153,7 @@
|
||||
<xs:element name="fly" minOccurs="0" type="bool"/>
|
||||
<xs:element name="boat" minOccurs="0" type="bool"/>
|
||||
<xs:element name="ride" minOccurs="0" type="bool"/>
|
||||
<xs:element name="archetype" minOccurs="0" type="bool"/>
|
||||
<xs:element name="light" minOccurs="0" type="xs:integer"/>
|
||||
<xs:element name="step-sound" minOccurs="0" type="stepSound"/>
|
||||
<xs:element name="trim" type="terTrim"/>
|
||||
|
Reference in New Issue
Block a user