Browse Source

Make debug less spammy

pull/25/head
Anders Jenbo 7 years ago
parent
commit
e7848c8192
  1. 7
      Source/player.cpp
  2. 4
      SourceX/sound.cpp
  3. 2
      SourceX/storm.cpp

7
Source/player.cpp

@ -328,8 +328,15 @@ DWORD __fastcall GetPlrGFXSize(char *szCel)
for (c = 0; c < sizeof(ClassStrTbl) / sizeof(ClassStrTbl[0]); c++) {
for (a = 0; ArmourChar[a]; a++) {
for (w = 0; WepChar[w]; w++) { // BUGFIX loads non-existing animagions; DT is only for N, BT is only for U, D & H
if (szCel[0] == 'D' && szCel[1] == 'T' && WepChar[w] != 'N') {
continue; //Death has no weapon^M
}
if (szCel[0] == 'B' && szCel[1] == 'L' && (WepChar[w] != 'U' || WepChar[w] != 'D' || WepChar[w] != 'H')) {
continue; //No block with out weapon
}
sprintf(prefix, "%c%c%c", CharChar[c], ArmourChar[a], WepChar[w]);
sprintf(pszName, "PlrGFX\\%s\\%s\\%s%s.CL2", ClassStrTbl[c], prefix, prefix, szCel);
if (WOpenFile(pszName, &file, TRUE)) {
size = WGetFileSize(file, 0);
WCloseFile(file);

4
SourceX/sound.cpp

@ -35,7 +35,7 @@ char unk_volume[4][2] = {
void __fastcall snd_update(BOOL bStopAll)
{
DUMMY_PRINT("snd_update: %d", bStopAll);
DUMMY_ONCE();
}
void __fastcall snd_stop_snd(TSnd *pSnd)
@ -81,7 +81,7 @@ TSnd *__fastcall sound_file_load(char *path)
void __fastcall sound_file_cleanup(TSnd *sound_file)
{
DUMMY();
DUMMY_ONCE();
}
void __fastcall snd_init(HWND hWnd)

2
SourceX/storm.cpp

@ -60,7 +60,7 @@ BOOL STORMAPI SFileDdaEnd(HANDLE directsound)
BOOL STORMAPI SFileDdaGetPos(HANDLE directsound, int a2, int a3)
{
DUMMY();
DUMMY_ONCE();
return 0;
}

Loading…
Cancel
Save