From 18eeeb657e18045b0cf3bb2d7b92b307ad70d979 Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Tue, 30 Jul 2002 04:52:45 +0000 Subject: [PATCH] SHAREWARE fixes --- main/gamemine.c | 8 +++----- main/piggy.c | 4 +--- main/piggy.h | 14 ++++++++++++++ main/weapon.c | 8 +++++++- 4 files changed, 25 insertions(+), 9 deletions(-) diff --git a/main/gamemine.c b/main/gamemine.c index 2ecfbc82..6540ac1b 100644 --- a/main/gamemine.c +++ b/main/gamemine.c @@ -16,7 +16,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. #endif #ifdef RCS -static char rcsid[] = "$Id: gamemine.c,v 1.5 2002-07-30 04:52:01 btb Exp $"; +static char rcsid[] = "$Id: gamemine.c,v 1.6 2002-07-30 04:52:45 btb Exp $"; #endif #include @@ -656,6 +656,7 @@ int load_mine_data_compiled(CFILE *LoadFile) for (i = 0; i < Num_vertices; i++) cfile_read_vector( &(Vertices[i]), LoadFile); + for (segnum=0; segnum @@ -1334,12 +1334,16 @@ extern void weapon_info_read(weapon_info *wi, CFILE *fp) wi->flash = cfile_read_byte(fp); wi->afterburner_size = cfile_read_byte(fp); +#ifndef SHAREWARE wi->children = cfile_read_byte(fp); +#endif wi->energy_usage = cfile_read_fix(fp); wi->fire_wait = cfile_read_fix(fp); +#ifndef SHAREWARE wi->multi_damage_scale = cfile_read_fix(fp); +#endif wi->bitmap.index = cfile_read_short(fp); // bitmap_index = short @@ -1358,5 +1362,7 @@ extern void weapon_info_read(weapon_info *wi, CFILE *fp) wi->lifetime = cfile_read_fix(fp); wi->damage_radius = cfile_read_fix(fp); wi->picture.index = cfile_read_short(fp); // bitmap_index is a short +#ifndef SHAREWARE wi->hires_picture.index = cfile_read_short(fp); // bitmap_index is a short +#endif } -- 2.39.2