Rev 775 | Rev 779 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 775 | Rev 777 | ||
---|---|---|---|
Line 731... | Line 731... | ||
731 | }
|
731 | }
|
732 | 732 | ||
733 | /// a (hacky) way of adding saplings of a certain age to a stand defined by 'stand_id'.
|
733 | /// a (hacky) way of adding saplings of a certain age to a stand defined by 'stand_id'.
|
734 | int StandLoader::loadSaplings(const QString &content, int stand_id, const QString &fileName) |
734 | int StandLoader::loadSaplings(const QString &content, int stand_id, const QString &fileName) |
735 | {
|
735 | {
|
- | 736 | Q_UNUSED(fileName); |
|
736 | const MapGrid *stand_grid; |
737 | const MapGrid *stand_grid; |
737 | if (mCurrentMap) |
738 | if (mCurrentMap) |
738 | stand_grid = mCurrentMap; // if set |
739 | stand_grid = mCurrentMap; // if set |
739 | else
|
740 | else
|
740 | stand_grid = GlobalSettings::instance()->model()->standGrid(); // default |
741 | stand_grid = GlobalSettings::instance()->model()->standGrid(); // default |