From e467ce279be08dc5a22079126162b61aa7ad16d2 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 22 Apr 2001 08:21:07 +0000 Subject: [PATCH] ursprung-fix --- src/common/kernel/plane.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/kernel/plane.c b/src/common/kernel/plane.c index ed9b6012b..eb522b3d3 100644 --- a/src/common/kernel/plane.c +++ b/src/common/kernel/plane.c @@ -115,7 +115,7 @@ ursprung_x(const faction *f, const plane *pl) } if (pl) { - set_ursprung(f, id, plane_center_x(pl), plane_center_y(pl)); + set_ursprung((faction*)f, id, plane_center_x(pl), plane_center_y(pl)); return plane_center_x(pl); } @@ -140,7 +140,7 @@ ursprung_y(const faction *f, const plane *pl) } if (pl) { - set_ursprung(f, id, plane_center_x(pl), plane_center_y(pl)); + set_ursprung((faction*)f, id, plane_center_x(pl), plane_center_y(pl)); return plane_center_y(pl); } @@ -148,7 +148,7 @@ ursprung_y(const faction *f, const plane *pl) } int -plane_center_x(plane *pl) +plane_center_x(const plane *pl) { if(pl == NULL) return 0; @@ -157,7 +157,7 @@ plane_center_x(plane *pl) } int -plane_center_y(plane *pl) +plane_center_y(const plane *pl) { if(pl == NULL) return 0;