diff --git a/main/gauges.c b/main/gauges.c index afe73101e..b5e2329f8 100644 --- a/main/gauges.c +++ b/main/gauges.c @@ -2249,7 +2249,7 @@ extern int Missile_gun; extern int allowed_to_fire_laser(void); extern int allowed_to_fire_missile(void); -rgb player_rgb[] = { +const rgb player_rgb[] = { {15,15,23}, {27,0,0}, {0,23,0}, @@ -2265,9 +2265,9 @@ typedef struct { } xy; //offsets for reticle parts: high-big high-sml low-big low-sml -xy cross_offsets[4] = { {-8,-5}, {-4,-2}, {-4,-2}, {-2,-1} }; -xy primary_offsets[4] = { {-30,14}, {-16,6}, {-15,6}, {-8, 2} }; -xy secondary_offsets[4] = { {-24,2}, {-12,0}, {-12,1}, {-6,-2} }; +static const xy cross_offsets[4] = { {-8,-5}, {-4,-2}, {-4,-2}, {-2,-1} }; +static const xy primary_offsets[4] = { {-30,14}, {-16,6}, {-15,6}, {-8, 2} }; +static const xy secondary_offsets[4] = { {-24,2}, {-12,0}, {-12,1}, {-6,-2} }; //draw the reticle void show_reticle(int reticle_type, int secondary_display) diff --git a/main/gauges.h b/main/gauges.h index bbaa6d9f1..4be702976 100644 --- a/main/gauges.h +++ b/main/gauges.h @@ -61,7 +61,7 @@ typedef struct { ubyte r,g,b; } rgb; -extern rgb player_rgb[]; +extern const rgb player_rgb[]; #define WBU_WEAPON 0 // the weapons display #define WBU_MISSILE 1 // the missile view