| 1 |
Description: spelling fix |
| 2 |
Author: Sébastien Noel <[email protected]> |
| 3 |
Forwarded: not-needed, already fixed in https://github.com/DescentDevelopers/Descent3/pull/546 |
| 4 |
--- a/Descent3/BriefingParse.cpp |
| 5 |
+++ b/Descent3/BriefingParse.cpp |
| 6 |
@@ -827,7 +827,7 @@ done_parsing:; |
| 7 |
if (reading_text) { |
| 8 |
ParseError("Missing '$endtext'"); |
| 9 |
} else { |
| 10 |
|
| 11 |
+ mprintf(0, "Parse successful\n"); |
| 12 |
} |
| 13 |
} |
| 14 |
|
| 15 |
--- a/Descent3/OsirisLoadandBind.cpp |
| 16 |
+++ b/Descent3/OsirisLoadandBind.cpp |
| 17 |
@@ -3422,7 +3422,7 @@ void Osiris_InitOMMS(void) { |
| 18 |
} |
| 19 |
|
| 20 |
void Osiris_CloseOMMS(void) { |
| 21 |
|
| 22 |
+ mprintf(0, "OSIRIS: Resetting OMMS memory\n"); |
| 23 |
|
| 24 |
tOMMSHashNode *curr = OMMS_Hash_node_root; |
| 25 |
|
| 26 |
--- a/Descent3/Player.cpp |
| 27 |
+++ b/Descent3/Player.cpp |
| 28 |
@@ -3668,7 +3668,7 @@ bool PlayerResetShipPermissions(int pnum |
| 29 |
|
| 30 |
int perm; |
| 31 |
|
| 32 |
|
| 33 |
+ mprintf(0, "Resetting ship permissions\n"); |
| 34 |
|
| 35 |
if (set_default) |
| 36 |
perm = Default_ship_permission; |
| 37 |
--- a/Descent3/TelCom.cpp |
| 38 |
+++ b/Descent3/TelCom.cpp |
| 39 |
@@ -1972,7 +1972,7 @@ void TelcomLoadHiLites(const char *filel |
| 40 |
|
| 41 |
TelcomHiLites[monitor] = (int *)mem_malloc(sizeof(int) * TelcomHiLiteCount[monitor]); |
| 42 |
if (!TelcomHiLites[monitor]) { |
| 43 |
|
| 44 |
+ mprintf(0, "Unable to allocate memory for HiLites monitor=%d\n", monitor); |
| 45 |
TelcomHiLiteCount[monitor] = 0; |
| 46 |
return; |
| 47 |
} |
| 48 |
--- a/Descent3/buddymenu.cpp |
| 49 |
+++ b/Descent3/buddymenu.cpp |
| 50 |
@@ -363,7 +363,7 @@ void MultiDoGuidebotMenuData(uint8_t *da |
| 51 |
|
| 52 |
Guidebot_data_download_status = 1; |
| 53 |
Multi_bail_ui_menu = true; |
| 54 |
|
| 55 |
+ mprintf(0, "Received Guidebot data from server\n"); |
| 56 |
} |
| 57 |
|
| 58 |
// downloads data for the buddybot |
| 59 |
@@ -415,7 +415,7 @@ int BuddyBotDownloadData(void) { |
| 60 |
case UID_CANCEL: |
| 61 |
case NEWUIRES_FORCEQUIT: |
| 62 |
if (Guidebot_data_download_status == 1) { |
| 63 |
|
| 64 |
+ // we received data |
| 65 |
Multi_bail_ui_menu = false; |
| 66 |
} else { |
| 67 |
Guidebot_data_download_status = -1; |
| 68 |
--- a/Descent3/multi.cpp |
| 69 |
+++ b/Descent3/multi.cpp |
| 70 |
@@ -4432,7 +4432,7 @@ void MultiDoWorldStates(uint8_t *data) { |
| 71 |
int flags = MultiGetInt(data, &count); |
| 72 |
int temp = 0xFFFFFFFF; |
| 73 |
|
| 74 |
|
| 75 |
+ mprintf(0, "Received Level Goal World State: %d\n", goal_index); |
| 76 |
Level_goals.GoalSetName(goal_index, name); |
| 77 |
Level_goals.GoalStatus(goal_index, LO_CLEAR_SPECIFIED, &temp); |
| 78 |
Level_goals.GoalStatus(goal_index, LO_SET_SPECIFIED, &flags, false); |
| 79 |
--- a/Descent3/pilot.cpp |
| 80 |
+++ b/Descent3/pilot.cpp |
| 81 |
@@ -1791,7 +1791,7 @@ void PltReadFile(pilot *Pilot, bool keyc |
| 82 |
filever = cf_ReadInt(file); |
| 83 |
cfclose(file); |
| 84 |
} catch (...) { |
| 85 |
|
| 86 |
+ mprintf(0, "File exception has occurred\n"); |
| 87 |
Int3(); |
| 88 |
Error(TXT_MAJORPLTERROR); |
| 89 |
return; |
| 90 |
@@ -1811,7 +1811,7 @@ void PltReadFile(pilot *Pilot, bool keyc |
| 91 |
try { |
| 92 |
_ReadOldPilotFile(Pilot, keyconfig, missiondata); |
| 93 |
} catch (...) { |
| 94 |
|
| 95 |
+ mprintf(0, "File exception has occurred\n"); |
| 96 |
Int3(); |
| 97 |
Error(TXT_MAJORPLTERROR); |
| 98 |
return; |
| 99 |
--- a/bitmap/bumpmap.cpp |
| 100 |
+++ b/bitmap/bumpmap.cpp |
| 101 |
@@ -72,7 +72,7 @@ int bump_AllocBumpmap(int w, int h) { |
| 102 |
|
| 103 |
GameBumpmaps[n].data = (uint16_t *)mem_malloc(w * h * 2); |
| 104 |
if (!GameBumpmaps[n].data) { |
| 105 |
|
| 106 |
+ mprintf(0, "NOT ENOUGH MEMORY FOR BUMPMAP!\n"); |
| 107 |
Int3(); |
| 108 |
return BAD_BUMP_INDEX; |
| 109 |
} |
| 110 |
--- a/bitmap/lightmap.cpp |
| 111 |
+++ b/bitmap/lightmap.cpp |
| 112 |
@@ -68,7 +68,7 @@ int lm_AllocLightmap(int w, int h) { |
| 113 |
memset(&GameLightmaps[n], 0, sizeof(bms_lightmap)); |
| 114 |
GameLightmaps[n].data = (uint16_t *)mem_malloc((w * h * 2)); |
| 115 |
if (!GameLightmaps[n].data) { |
| 116 |
|
| 117 |
+ mprintf(0, "NOT ENOUGH MEMORY FOR LIGHTMAP!\n"); |
| 118 |
Int3(); |
| 119 |
return BAD_LM_INDEX; |
| 120 |
} |
| 121 |
--- a/manage/pagelock.cpp |
| 122 |
+++ b/manage/pagelock.cpp |
| 123 |
@@ -236,7 +236,7 @@ char *mng_CheckIfLockerPresent() { |
| 124 |
|
| 125 |
cf_ReadString(lockname, sizeof(lockname), infile); |
| 126 |
|
| 127 |
|
| 128 |
+ mprintf(0, "%s has already got exclusive access to the table file.\n", lockname); |
| 129 |
|
| 130 |
cfclose(infile); |
| 131 |
|
| 132 |
--- a/model/polymodel.cpp |
| 133 |
+++ b/model/polymodel.cpp |
| 134 |
@@ -1661,7 +1661,7 @@ int ReadNewModelFile(int polynum, CFILE |
| 135 |
if (pm->n_attach == (num_normals = cf_ReadInt(infile))) |
| 136 |
f_uvec = true; |
| 137 |
else { |
| 138 |
|
| 139 |
+ mprintf(0, "WARNING: Ignoring ATTACH normals - total number doesn't match number of attach points\n"); |
| 140 |
// Int3(); |
| 141 |
DataError("Model <%s> specifies %d attach points but only contains %d attach normals\n", pm->name, pm->n_attach, |
| 142 |
num_normals); |
| 143 |
--- a/netgames/dmfc/dmfcpackets.cpp |
| 144 |
+++ b/netgames/dmfc/dmfcpackets.cpp |
| 145 |
@@ -526,7 +526,7 @@ void DMFCBase::GetDMFCVersionCheck(uint8 |
| 146 |
|
| 147 |
if ((major != DMFC_VERSION_MAJOR) || (minor != DMFC_VERSION_MINOR)) { |
| 148 |
char buffer[200]; |
| 149 |
|
| 150 |
+ snprintf(buffer, sizeof(buffer), "Expecting Version %d.%d, found %d.%d", major, minor, DMFC_VERSION_MAJOR, |
| 151 |
DMFC_VERSION_MINOR); |
| 152 |
FatalError(buffer); |
| 153 |
} |
| 154 |
--- a/networking/networking.cpp |
| 155 |
+++ b/networking/networking.cpp |
| 156 |
@@ -1554,7 +1554,7 @@ void nw_HandleConnectResponse(uint8_t *d |
| 157 |
Net_connect_socket_id = i; |
| 158 |
reliable_sockets[i].last_sent = timer_GetTime(); |
| 159 |
reliable_sockets[i].waiting_packet_number = -1; |
| 160 |
|
| 161 |
+ mprintf(0, "Successfully connected to server in nw_ConnectToServer().\n"); |
| 162 |
// Now send I_AM_HERE packet |
| 163 |
conn_header.type = RNT_I_AM_HERE; |
| 164 |
conn_header.seq = INTEL_SHORT((int16_t)(~CONNECTSEQ)); |
| 165 |
--- a/scripts/Level6.cpp |
| 166 |
+++ b/scripts/Level6.cpp |
| 167 |
@@ -1282,7 +1282,7 @@ void PriestJustEnteredPuzzle(void) { |
| 168 |
} |
| 169 |
|
| 170 |
void PriestResetPuzzle(void) { |
| 171 |
|
| 172 |
+ mprintf(0, "Resetting Priest Key Puzzle\n"); |
| 173 |
if (Var_PriestPuzzleCompleted != 1.0f) { |
| 174 |
Var_PriestPlayerCurrNode = 0; |
| 175 |
Var_PriestPuzzleGoofed = 0; |
| 176 |
--- a/sndlib/sdlsound.cpp |
| 177 |
+++ b/sndlib/sdlsound.cpp |
| 178 |
@@ -292,7 +292,7 @@ int lnxsound::PlaySound2d(play_informati |
| 179 |
|
| 180 |
// do common processing. |
| 181 |
if (SoundFiles[Sounds[sound_index].sample_index].used == 0) { |
| 182 |
|
| 183 |
+ mprintf(0, "Tried to play %d sound, it DNE.\n", sound_index); |
| 184 |
return -1; |
| 185 |
} |
| 186 |
#ifdef _DEBUG |
| 187 |
--- a/sndlib/soundload.cpp |
| 188 |
+++ b/sndlib/soundload.cpp |
| 189 |
@@ -431,7 +431,7 @@ int LoadSoundFile(const char *filename, |
| 190 |
|
| 191 |
len = strlen(filename); |
| 192 |
if (len < 4) { |
| 193 |
|
| 194 |
+ mprintf(0, "SOUND LOADER: %s does not have a 3 character extension.\n", filename); |
| 195 |
Int3(); // Get chris |
| 196 |
goto error_state; |
| 197 |
} |