Merge branch 'master' into jgrpp
# Conflicts: # src/console_cmds.cpp # src/date.cpp # src/economy.cpp # src/misc.cpp # src/newgrf_house.cpp
This commit is contained in:
@@ -67,6 +67,11 @@
|
||||
/** List of all loaded GRF files */
|
||||
static std::vector<GRFFile *> _grf_files;
|
||||
|
||||
const std::vector<GRFFile *> &GetAllGRFFiles()
|
||||
{
|
||||
return _grf_files;
|
||||
}
|
||||
|
||||
/** Miscellaneous GRF features, set by Action 0x0D, parameter 0x9E */
|
||||
byte _misc_grf_features = 0;
|
||||
|
||||
@@ -5107,6 +5112,7 @@ static void NewSpriteGroup(ByteReader *buf)
|
||||
|
||||
assert(DeterministicSpriteGroup::CanAllocateItem());
|
||||
DeterministicSpriteGroup *group = new DeterministicSpriteGroup();
|
||||
group->nfo_line = _cur.nfo_line;
|
||||
act_group = group;
|
||||
group->var_scope = HasBit(type, 1) ? VSG_SCOPE_PARENT : VSG_SCOPE_SELF;
|
||||
|
||||
@@ -5223,6 +5229,7 @@ static void NewSpriteGroup(ByteReader *buf)
|
||||
{
|
||||
assert(RandomizedSpriteGroup::CanAllocateItem());
|
||||
RandomizedSpriteGroup *group = new RandomizedSpriteGroup();
|
||||
group->nfo_line = _cur.nfo_line;
|
||||
act_group = group;
|
||||
group->var_scope = HasBit(type, 1) ? VSG_SCOPE_PARENT : VSG_SCOPE_SELF;
|
||||
|
||||
@@ -5271,6 +5278,7 @@ static void NewSpriteGroup(ByteReader *buf)
|
||||
|
||||
assert(RealSpriteGroup::CanAllocateItem());
|
||||
RealSpriteGroup *group = new RealSpriteGroup();
|
||||
group->nfo_line = _cur.nfo_line;
|
||||
act_group = group;
|
||||
|
||||
group->num_loaded = num_loaded;
|
||||
@@ -5304,6 +5312,7 @@ static void NewSpriteGroup(ByteReader *buf)
|
||||
|
||||
assert(TileLayoutSpriteGroup::CanAllocateItem());
|
||||
TileLayoutSpriteGroup *group = new TileLayoutSpriteGroup();
|
||||
group->nfo_line = _cur.nfo_line;
|
||||
act_group = group;
|
||||
|
||||
/* On error, bail out immediately. Temporary GRF data was already freed */
|
||||
@@ -5319,6 +5328,7 @@ static void NewSpriteGroup(ByteReader *buf)
|
||||
|
||||
assert(IndustryProductionSpriteGroup::CanAllocateItem());
|
||||
IndustryProductionSpriteGroup *group = new IndustryProductionSpriteGroup();
|
||||
group->nfo_line = _cur.nfo_line;
|
||||
act_group = group;
|
||||
group->version = type;
|
||||
if (type == 0) {
|
||||
|
Reference in New Issue
Block a user