Make g_earthquakeTime into a uint16_t, remove DukePlayer_t's name[] member.

Bump BYTEVERSION.

git-svn-id: https://svn.eduke32.com/eduke32@3478 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-02-11 17:16:50 +00:00
parent 605de9f6d1
commit 200cd75275
6 changed files with 4 additions and 9 deletions

View file

@ -57,7 +57,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define VOLUMEONE (g_Shareware == 1)
// increase by 3, because atomic GRP adds 1, and Shareware adds 2
#define BYTEVERSION_JF 273
#define BYTEVERSION_JF 276
#define BYTEVERSION_13 27
#define BYTEVERSION_14 116

View file

@ -3112,7 +3112,7 @@ nullquote:
case CON_QUAKE:
insptr++;
g_earthquakeTime = (uint8_t)Gv_GetVarX(*insptr++);
g_earthquakeTime = Gv_GetVarX(*insptr++);
A_PlaySound(EARTHQUAKE,g_player[screenpeek].ps->i);
continue;

View file

@ -91,7 +91,7 @@ G_EXTERN int32_t g_currentFrameRate;
G_EXTERN int32_t g_currentMenu;
G_EXTERN int32_t g_damageCameras,g_freezerSelfDamage;
G_EXTERN int32_t g_doQuickSave;
G_EXTERN char g_earthquakeTime;
G_EXTERN uint16_t g_earthquakeTime;
G_EXTERN int32_t g_gameQuit;
G_EXTERN int32_t g_groupFileHandle;
G_EXTERN int32_t g_impactDamage,g_maxPlayerHealth;

View file

@ -245,8 +245,6 @@ __attribute__((packed)) struct {
uint8_t palette;
palette_t _pals;
const char name[32];
// NOTE: In C, the struct type has no name. We only have it here to define
// a metatype later.
const weaponaccess_t weapon;

View file

@ -227,9 +227,6 @@ typedef struct {
uint8_t palette;
palette_t pals;
// UNUSED
char name[32];
#ifdef LUNATIC
// The player index. Always valid since we have no loose DukePlayer_t's
// anywhere (like with spritetype_t): g_player[i].ps->wa.idx == i.

View file

@ -65,7 +65,7 @@ typedef struct {
int16_t prevspritestat[MAXSPRITES];
int16_t pskyoff[MAXPSKYTILES], pskybits;
uint8_t g_earthquakeTime;
uint16_t g_earthquakeTime;
int8_t g_numPlayerSprites;
uint8_t show2dsector[(MAXSECTORS+7)>>3];