Fix a few compiler warnings
This commit is contained in:
@@ -70,17 +70,17 @@ private:
|
|||||||
public:
|
public:
|
||||||
SpriteFontCache(FontSize fs);
|
SpriteFontCache(FontSize fs);
|
||||||
~SpriteFontCache();
|
~SpriteFontCache();
|
||||||
virtual SpriteID GetUnicodeGlyph(WChar key) override;
|
SpriteID GetUnicodeGlyph(WChar key) override;
|
||||||
virtual void SetUnicodeGlyph(WChar key, SpriteID sprite) override;
|
void SetUnicodeGlyph(WChar key, SpriteID sprite) override;
|
||||||
virtual void InitializeUnicodeGlyphMap() override;
|
void InitializeUnicodeGlyphMap() override;
|
||||||
virtual void ClearFontCache() override;
|
void ClearFontCache() override;
|
||||||
virtual const Sprite *GetGlyph(GlyphID key) override;
|
const Sprite *GetGlyph(GlyphID key) override;
|
||||||
virtual uint GetGlyphWidth(GlyphID key) override;
|
uint GetGlyphWidth(GlyphID key) override;
|
||||||
virtual bool GetDrawGlyphShadow() override;
|
bool GetDrawGlyphShadow() override;
|
||||||
virtual GlyphID MapCharToGlyph(WChar key) override { assert(IsPrintable(key)); return SPRITE_GLYPH | key; }
|
GlyphID MapCharToGlyph(WChar key) override { assert(IsPrintable(key)); return SPRITE_GLYPH | key; }
|
||||||
virtual const void *GetFontTable(uint32 tag, size_t &length) override { length = 0; return nullptr; }
|
const void *GetFontTable(uint32 tag, size_t &length) override { length = 0; return nullptr; }
|
||||||
virtual const char *GetFontName() { return "sprite"; }
|
const char *GetFontName() override { return "sprite"; }
|
||||||
virtual bool IsBuiltInFont() override { return true; }
|
bool IsBuiltInFont() override { return true; }
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -107,7 +107,7 @@ struct RealSpriteGroup : SpriteGroup {
|
|||||||
std::vector<const SpriteGroup *> loading; ///< List of loading groups (can be SpriteIDs or Callback results)
|
std::vector<const SpriteGroup *> loading; ///< List of loading groups (can be SpriteIDs or Callback results)
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
const SpriteGroup *Resolve(ResolverObject &object) const;
|
const SpriteGroup *Resolve(ResolverObject &object) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Shared by deterministic and random groups. */
|
/* Shared by deterministic and random groups. */
|
||||||
|
@@ -25,8 +25,6 @@
|
|||||||
static const uint NPF_HASH_BITS = 12; ///< The size of the hash used in pathfinding. Just changing this value should be sufficient to change the hash size. Should be an even value.
|
static const uint NPF_HASH_BITS = 12; ///< The size of the hash used in pathfinding. Just changing this value should be sufficient to change the hash size. Should be an even value.
|
||||||
/* Do no change below values */
|
/* Do no change below values */
|
||||||
static const uint NPF_HASH_SIZE = 1 << NPF_HASH_BITS;
|
static const uint NPF_HASH_SIZE = 1 << NPF_HASH_BITS;
|
||||||
static const uint NPF_HASH_HALFBITS = NPF_HASH_BITS / 2;
|
|
||||||
static const uint NPF_HASH_HALFMASK = (1 << NPF_HASH_HALFBITS) - 1;
|
|
||||||
|
|
||||||
/** Meant to be stored in AyStar.targetdata */
|
/** Meant to be stored in AyStar.targetdata */
|
||||||
struct NPFFindStationOrTileData {
|
struct NPFFindStationOrTileData {
|
||||||
|
Reference in New Issue
Block a user