Merge branch 'master' into jgrpp
# Conflicts: # src/autoreplace_cmd.cpp # src/company_base.h # src/company_gui.cpp # src/cpu.cpp # src/debug.h # src/group.h # src/group_cmd.cpp # src/house.h # src/industry.h # src/newgrf_house.cpp # src/news_type.h # src/openttd.cpp # src/saveload/company_sl.cpp # src/settings_type.h # src/sl/oldloader_sl.cpp # src/story.cpp # src/table/town_land.h # src/viewport.cpp
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "window_func.h"
|
||||
#include "gui.h"
|
||||
#include "vehicle_base.h"
|
||||
#include "palette_func.h"
|
||||
#include "game/game.hpp"
|
||||
#include "script/api/script_story_page.hpp"
|
||||
#include "script/api/script_event_types.hpp"
|
||||
@@ -145,7 +146,9 @@ void StoryPageButtonData::SetVehicleType(VehicleType vehtype)
|
||||
/** Get the button background colour. */
|
||||
Colours StoryPageButtonData::GetColour() const
|
||||
{
|
||||
return Extract<Colours, 0, 8>(this->referenced_id);
|
||||
Colours colour = Extract<Colours, 0, 8>(this->referenced_id);
|
||||
if (!IsValidColours(colour)) return INVALID_COLOUR;
|
||||
return colour;
|
||||
}
|
||||
|
||||
StoryPageButtonFlags StoryPageButtonData::GetFlags() const
|
||||
|
Reference in New Issue
Block a user