Increase limit on the length of the "Who Wrote" lines in scenario details

This commit is contained in:
2015-06-03 19:51:57 -04:00
parent a51ab021f4
commit 3cc12f464f
3 changed files with 4 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ combined. Only give an item a type flag greater than 100 ... smaller type flags
reserved for the preset items.</li>
<li><b>Value:</b> The value of the item in gold.</li>
<li><b>Weight:</b> The weight of the item.</li>
<li><b>Special Class (Advanced):<b> Some special nodes (like Have Item With Class?) check
<li><b>Special Class (Advanced):</b> Some special nodes (like Have Item With Class?) check
to see if the party has a special item. Set an item's special class here (0 for no special
class).
<p>For example, an item Boat Ticket can have special class 1, and a special node

View File

@@ -1725,7 +1725,7 @@ values have slightly different meanings than before:</p>
<dt>Extra 1a, Extra 1b, Extra 2a, Extra 2b:</dt><dd>For each of these specials, Extra 1a
and Extra 1b are the top and left of the rectangle. Extra 2a and Extra 2b are the bottom
and right of the rectangle. Note that this is the reverse of standard coordinate order -
Y coordinate first, then X coordinate.
Y coordinate first, then X coordinate.
<p>The default values of Extra 2a and Extra 2b are -1. If you want the effect to only
apply to one space (and not a whole rectangle), leave Extra 2a and Extra 2b at -1. In this
case, the node only affects the space specified by Extra 1a and Extra 1b.</dd>

View File

@@ -2688,8 +2688,8 @@ static bool save_scen_details(cDialog& me, std::string, eKeyMod) {
scenario.adjust_diff = dynamic_cast<cLed&>(me["adjust"]).getState() != led_red;
for(i = 0; i < 3; i++)
scenario.format.ver[i] = me["ver" + std::to_string(i + 1)].getTextAsNum();
scenario.who_wrote[0] = me["who1"].getText().substr(0, 60);
scenario.who_wrote[1] = me["who2"].getText().substr(0, 60);
scenario.who_wrote[0] = me["who1"].getText().substr(0, 100);
scenario.who_wrote[1] = me["who2"].getText().substr(0, 100);
scenario.contact_info = me["contact"].getText().substr(0, 256);
scenario.campaign_id = me["cpnid"].getText();
scenario.bg_out = boost::lexical_cast<int>(me["bg-out"].getText().substr(10));