From c973f65acb31a3b966f4270a72ae8a5d0b970e5b Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 23 Apr 2017 09:19:32 +0000 Subject: [PATCH] (svn r27858) -Change [FS#6560]: Add missing game script event for ships arriving at a station. (juanjo) --- src/fontcache.cpp | 2 +- src/ship_cmd.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fontcache.cpp b/src/fontcache.cpp index 6bea59c103..9307c2eddd 100644 --- a/src/fontcache.cpp +++ b/src/fontcache.cpp @@ -529,7 +529,7 @@ const Sprite *FreeTypeFontCache::GetGlyph(GlyphID key) return glyph->sprite; } } - FT_Load_Glyph(this->face, key, FT_LOAD_DEFAULT); + FT_Load_Glyph(this->face, key, FT_LOAD_NO_HINTING); FT_Render_Glyph(this->face->glyph, aa ? FT_RENDER_MODE_NORMAL : FT_RENDER_MODE_MONO); /* Despite requesting a normal glyph, FreeType may have returned a bitmap */ diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index de1bf4f8c6..771863a24d 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -28,6 +28,7 @@ #include "vehicle_func.h" #include "sound_func.h" #include "ai/ai.hpp" +#include "game/game.hpp" #include "pathfinder/opf/opf_ship.h" #include "engine_base.h" #include "company_base.h" @@ -421,6 +422,7 @@ static void ShipArrivesAt(const Vehicle *v, Station *st) st->index ); AI::NewEvent(v->owner, new ScriptEventStationFirstVehicle(st->index, v->index)); + Game::NewEvent(new ScriptEventStationFirstVehicle(st->index, v->index)); } }