Remove some explicit array sizes

These are just annoying, and chances are the source code never did
this.

I might just remove *all* of these at some point.
This commit is contained in:
Clownacy 2020-09-04 00:54:23 +01:00
parent c81829e99a
commit 5579c57738
5 changed files with 6 additions and 6 deletions

View file

@ -102,7 +102,7 @@ void PutBullet(int fx, int fy)
} }
} }
BULLET_TABLE gBulTbl[46] = { BULLET_TABLE gBulTbl[] = {
// Null // Null
{0, 0, 0, 0, 0, 0, 0, 0, {0, 0, 0, 0}}, {0, 0, 0, 0, 0, 0, 0, 0, {0, 0, 0, 0}},
// Snake // Snake

View file

@ -38,7 +38,7 @@ struct CARET_TABLE
CARET gCrt[CARET_MAX]; CARET gCrt[CARET_MAX];
// Sprite offsets // Sprite offsets
CARET_TABLE gCaretTable[18] = { CARET_TABLE gCaretTable[] = {
{0, 0}, // CARET_NULL {0, 0}, // CARET_NULL
{ 4 * 0x200, 4 * 0x200}, // CARET_BUBBLE { 4 * 0x200, 4 * 0x200}, // CARET_BUBBLE
{ 8 * 0x200, 8 * 0x200}, // CARET_PROJECTILE_DISSIPATION { 8 * 0x200, 8 * 0x200}, // CARET_PROJECTILE_DISSIPATION

View file

@ -15,7 +15,7 @@ void ReadyMapName(const char *str)
int a; int a;
// Handle "Studio Pixel presents" text in the intro, using an obfuscated string // Handle "Studio Pixel presents" text in the intro, using an obfuscated string
unsigned char presentText[24] = { unsigned char presentText[] = {
#ifdef JAPANESE #ifdef JAPANESE
// "開発室Pixel presents" // "開発室Pixel presents"
0x8A - 1, // 開 0x8A - 1, // 開

View file

@ -10,7 +10,7 @@
#include "NpcAct.h" #include "NpcAct.h"
// Npc function table // Npc function table
const NPCFUNCTION gpNpcFuncTbl[361] = { const NPCFUNCTION gpNpcFuncTbl[] = {
ActNpc000, ActNpc000,
ActNpc001, ActNpc001,
ActNpc002, ActNpc002,

View file

@ -33,7 +33,7 @@ MusicID gOldNo;
// Note: Pixel made numerous capitalisation errors when creating this table. // Note: Pixel made numerous capitalisation errors when creating this table.
// This isn't a problem for Windows, because of its case-insensitive filesystem. // This isn't a problem for Windows, because of its case-insensitive filesystem.
const STAGE_TABLE gTMT[95] = { const STAGE_TABLE gTMT[] = {
STAGE_ENTRY("0", "0", BACKGROUND_TYPE_BLACK, "bk0", "Guest", "0", 0, "Null", "\x96\xB3"), /* 無 */ STAGE_ENTRY("0", "0", BACKGROUND_TYPE_BLACK, "bk0", "Guest", "0", 0, "Null", "\x96\xB3"), /* 無 */
STAGE_ENTRY("Pens", "Pens1", BACKGROUND_TYPE_MOVE_DISTANT, "BkBlue", "Guest", "0", 0, "Arthur's House", "\x83\x41\x81\x5B\x83\x54\x81\x5B\x82\xCC\x89\xC6"), /* アーサーの家 */ STAGE_ENTRY("Pens", "Pens1", BACKGROUND_TYPE_MOVE_DISTANT, "BkBlue", "Guest", "0", 0, "Arthur's House", "\x83\x41\x81\x5B\x83\x54\x81\x5B\x82\xCC\x89\xC6"), /* アーサーの家 */
STAGE_ENTRY("Eggs", "Eggs", BACKGROUND_TYPE_MOVE_DISTANT, "BkGreen", "Eggs1", "Ravil", 0, "Egg Corridor", "\x83\x5E\x83\x7D\x83\x53\x89\xF1\x98\x4C"), /* タマゴ回廊 */ STAGE_ENTRY("Eggs", "Eggs", BACKGROUND_TYPE_MOVE_DISTANT, "BkGreen", "Eggs1", "Ravil", 0, "Egg Corridor", "\x83\x5E\x83\x7D\x83\x53\x89\xF1\x98\x4C"), /* タマゴ回廊 */
@ -206,7 +206,7 @@ BOOL TransferStage(int no, int w, int x, int y)
} }
// Music // Music
const char* const gMusicTable[42] = { const char* const gMusicTable[] = {
"XXXX", "XXXX",
"WANPAKU", "WANPAKU",
"ANZEN", "ANZEN",