summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-01-23 16:43:19 +0100
committerSergeanur <s.anureev@yandex.ua>2020-01-23 16:43:19 +0100
commit18f80a02fcb35e42874ebdd91eea3286120c8afc (patch)
tree85acc3e425e4473de80b7263eb92699be5412b26 /src
parentPlane crashfix and more (diff)
downloadre3-18f80a02fcb35e42874ebdd91eea3286120c8afc.tar
re3-18f80a02fcb35e42874ebdd91eea3286120c8afc.tar.gz
re3-18f80a02fcb35e42874ebdd91eea3286120c8afc.tar.bz2
re3-18f80a02fcb35e42874ebdd91eea3286120c8afc.tar.lz
re3-18f80a02fcb35e42874ebdd91eea3286120c8afc.tar.xz
re3-18f80a02fcb35e42874ebdd91eea3286120c8afc.tar.zst
re3-18f80a02fcb35e42874ebdd91eea3286120c8afc.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Plane.cpp4
-rw-r--r--src/vehicles/Plane.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/vehicles/Plane.cpp b/src/vehicles/Plane.cpp
index cfe33556..b4d80581 100644
--- a/src/vehicles/Plane.cpp
+++ b/src/vehicles/Plane.cpp
@@ -958,8 +958,8 @@ CPlane::CreateDropOffCesna(void)
printf("CPlane::CreateDropOffCesna(void)\n");
}
-CVector CPlane::FindDrugPlaneCoordinates(void) { return pDrugRunCesna->GetPosition(); }
-CVector CPlane::FindDropOffCesnaCoordinates(void) { return pDropOffCesna->GetPosition(); }
+const CVector CPlane::FindDrugPlaneCoordinates(void) { return pDrugRunCesna->GetPosition(); }
+const CVector CPlane::FindDropOffCesnaCoordinates(void) { return pDropOffCesna->GetPosition(); }
bool CPlane::HasCesnaLanded(void) { return CesnaMissionStatus == CESNA_STATUS_LANDED; }
bool CPlane::HasCesnaBeenDestroyed(void) { return CesnaMissionStatus == CESNA_STATUS_DESTROYED; }
bool CPlane::HasDropOffCesnaBeenShotDown(void) { return DropOffCesnaMissionStatus == CESNA_STATUS_DESTROYED; }
diff --git a/src/vehicles/Plane.h b/src/vehicles/Plane.h
index eddbc2cd..edca92ec 100644
--- a/src/vehicles/Plane.h
+++ b/src/vehicles/Plane.h
@@ -59,8 +59,8 @@ public:
static bool TestRocketCollision(CVector *rocketPos);
static void CreateIncomingCesna(void);
static void CreateDropOffCesna(void);
- static CVector FindDrugPlaneCoordinates(void);
- static CVector FindDropOffCesnaCoordinates(void);
+ static const CVector FindDrugPlaneCoordinates(void);
+ static const CVector FindDropOffCesnaCoordinates(void);
static bool HasCesnaLanded(void);
static bool HasCesnaBeenDestroyed(void);
static bool HasDropOffCesnaBeenShotDown(void);