SAGA2: Fix warnings

This commit is contained in:
Eugene Sandulenko 2021-06-02 14:40:41 +02:00
parent 78d8cf362e
commit 46f062d54a
No known key found for this signature in database
GPG Key ID: 014D387312D34F08
2 changed files with 4 additions and 4 deletions

View File

@ -315,7 +315,7 @@ void termMapFeatures(void) {
CMapFeature::CMapFeature(TilePoint where, int16 inWorld, char *desc) {
CMapFeature::CMapFeature(TilePoint where, int16 inWorld, const char *desc) {
visible = FALSE;
featureCoords = where;
world = inWorld;
@ -398,7 +398,7 @@ bool CMapFeature::hitCheck(TileRegion viewRegion,
CStaticMapFeatute class implementation
* ===================================================================== */
CStaticMapFeature::CStaticMapFeature(TilePoint where, int16 inWorld, char *desc, int16 bColor)
CStaticMapFeature::CStaticMapFeature(TilePoint where, int16 inWorld, const char *desc, int16 bColor)
: CMapFeature(where, inWorld, desc) {
color = bColor;
}

View File

@ -52,7 +52,7 @@ class CMapFeature {
public:
CMapFeature(TilePoint where, int16 inWorld, char *desc);
CMapFeature(TilePoint where, int16 inWorld, const char *desc);
virtual ~CMapFeature() {}
void expose(bool canSee = TRUE) {
@ -89,7 +89,7 @@ class CStaticMapFeature : public CMapFeature {
int16 color;
public:
CStaticMapFeature(TilePoint where, int16 inWorld, char *desc, int16 bColor);
CStaticMapFeature(TilePoint where, int16 inWorld, const char *desc, int16 bColor);
virtual void blit(gPort &tp, int32 x, int32 y);
virtual void update(void) {}
virtual bool isHit(TilePoint disp, TilePoint mouse);