Industry: Determine which tiles in industry layouts are not animated

Do not set these as animated tiles for new industries
This commit is contained in:
Jonathan G Rennison
2022-06-01 00:30:21 +01:00
parent 220390ed3e
commit 42e20d3d99
12 changed files with 208 additions and 3 deletions

View File

@@ -0,0 +1,23 @@
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/
/** @file newgrf_industrytiles_analysis.h NewGRF handling of industry tiles: analysis. */
#ifndef NEWGRF_INDUSTRYTILES_ANALYSIS_H
#define NEWGRF_INDUSTRYTILES_ANALYSIS_H
#include "industrytype.h"
struct AnalyseCallbackOperationIndustryTileData {
const IndustryTileLayout *layout;
uint64 check_mask;
uint64 *result_mask;
uint8 layout_index;
bool anim_state_at_offset;
};
#endif /* NEWGRF_INDUSTRYTILES_ANALYSIS_H */