From 9b2675b1f715a15accc5c54a82aa3cafbcf3ddd4 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 4 Nov 2024 10:20:15 +0100 Subject: [PATCH] Fix spello "~full" --- Descent3/demofile.cpp | 2 +- Descent3/screens.cpp | 2 +- Descent3/stringtable.h | 2 +- ddebug/windebug.cpp | 2 +- editor/DallasMainDlg.cpp | 8 ++++---- editor/TableFileEdit.cpp | 4 ++-- editor/TableFileFilter.cpp | 8 ++++---- editor/editorDoc.cpp | 2 +- legacy/renderer/Direct3D.cpp | 2 +- legacy/renderer/opengl.cpp | 2 +- legacy/renderer/renderer.cpp | 2 +- lib/demofile.h | 2 +- lib/renderer.h | 2 +- networking/networking.cpp | 2 +- renderer/HardwareBaseGPU.cpp | 2 +- 15 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Descent3/demofile.cpp b/Descent3/demofile.cpp index 2cef503d..79cc1df5 100644 --- a/Descent3/demofile.cpp +++ b/Descent3/demofile.cpp @@ -337,7 +337,7 @@ static bool Demo_play_fast = false; extern void PageInAllData(); -// Prompts user for filename and starts recording if successfull +// Prompts user for filename and starts recording if successful void DemoToggleRecording() { char szfile[_MAX_PATH * 2]; szfile[0] = '\0'; diff --git a/Descent3/screens.cpp b/Descent3/screens.cpp index 978bfd5c..9dfe31eb 100644 --- a/Descent3/screens.cpp +++ b/Descent3/screens.cpp @@ -464,7 +464,7 @@ void SinglePlayerPostLevelResults() { else PLR.accuracy_rating = 0.5f; - // strcpy(PLRHeader,PLR_success?"Mission Successfull":"Mission Failed"); + // strcpy(PLRHeader, PLR_success ? "Mission Successful" : "Mission Failed"); strcpy(PLRHeader, PLR_success ? TXT_PLR_MSN_SUCCESS : TXT_PLR_MSN_FAILED); snprintf(PLRLevel, sizeof(PLRLevel), "%s", Level_info.name); diff --git a/Descent3/stringtable.h b/Descent3/stringtable.h index d5ea10e0..aefbbb5b 100644 --- a/Descent3/stringtable.h +++ b/Descent3/stringtable.h @@ -795,7 +795,7 @@ const char *GetStringFromTable(int index); #define TXT_PLTTOONEW TXT(764) //"Pilot File '%s' is not compatible with this version." #define TXT_FAILED TXT(765) //"Failed" #define TXT_SCORE TXT(766) //"Score" -#define TXT_PLR_MSN_SUCCESS TXT(767) // Mission Successfull +#define TXT_PLR_MSN_SUCCESS TXT(767) // Mission Successful #define TXT_PLR_MSN_FAILED TXT(768) // Mission Failed #define TXT_VIEW_GUIDEBOT TXT(769) //"Guide-Bot" #define TXT_VIEW_MARKER TXT(770) //"Marker" diff --git a/ddebug/windebug.cpp b/ddebug/windebug.cpp index 75ebc04c..64434ba7 100644 --- a/ddebug/windebug.cpp +++ b/ddebug/windebug.cpp @@ -46,7 +46,7 @@ * added multiple pages per mono window. * * 27 4/01/99 11:07a Kevin - * Added some more usefull debugging info + * Added some more useful debugging info * * 26 4/01/99 9:40a Matt * Fixed dump_text_to_clipboard. It used to allocate a fixed number of diff --git a/editor/DallasMainDlg.cpp b/editor/DallasMainDlg.cpp index 2453d1eb..81b0b848 100644 --- a/editor/DallasMainDlg.cpp +++ b/editor/DallasMainDlg.cpp @@ -3311,7 +3311,7 @@ HTREEITEM CDallasMainDlg::AddNodeToTree(HTREEITEM parent, HTREEITEM insertbefore added_item = m_ScriptTree.InsertItem(&tvs); - // If add was unsuccessfull, delete the item data + // If add was unsuccessful, delete the item data if (added_item == NULL) { delete new_data_node; MessageBox("Unable to Allocate a New Tree Node", "Out of Memory Error!", MB_OK | MB_ICONEXCLAMATION); @@ -7217,7 +7217,7 @@ void CDallasMainDlg::FillQueryMenu(CMenu *query_menu, int command_offset, int va // Attempts to parse the Nth (indexed at 1) bracketed section of the given function node's desc, // and obtain from it the parameter name, default string, and range string. -// It returns the param type if successfull, or -1 if the requested Parameter section +// It returns the param type if successful, or -1 if the requested Parameter section // does not exist int CDallasMainDlg::ParseNthParam(HTREEITEM func_node, int n, CString &name_text, CString &default_text, CString &range_text) { @@ -7247,7 +7247,7 @@ int CDallasMainDlg::ParseNthParam(HTREEITEM func_node, int n, CString &name_text // Attempts to parse the Nth (indexed at 1) bracketed section of the given action desc, // and obtain from it the parameter name, default string, and range string. -// It returns the param type if successfull, or -1 if the requested Parameter section +// It returns the param type if successful, or -1 if the requested Parameter section // does not exist int CDallasMainDlg::ParseNthParam(char *desc, int n, CString &name_text, CString &default_text, CString &range_text) { // Check validity of desc and given n @@ -7277,7 +7277,7 @@ int CDallasMainDlg::ParseNthParam(char *desc, int n, CString &name_text, CString #define DEFAULT_SECTION 3 #define RANGE_SECTION 4 -// Parses the next param block encountered, and, if successfull, returns the +// Parses the next param block encountered, and, if successful, returns the // parameter type (-1 is returned if a parameter block was not found). // The name, default, and range strings are also set appropriately, and the // line pointer will be set to the first character after the closing bracket. diff --git a/editor/TableFileEdit.cpp b/editor/TableFileEdit.cpp index debcf402..01e51c49 100644 --- a/editor/TableFileEdit.cpp +++ b/editor/TableFileEdit.cpp @@ -140,7 +140,7 @@ void CTableFileEdit::OnTableEditFileSave() { m_PageList.SaveSelected(&m_DescriptionBox); if (!m_PageList.SaveTable(NULL)) { - MessageBox("The save was unsuccessfull", "Save Table Error!"); + MessageBox("The save was unsuccessful", "Save Table Error!"); return; } m_PageList.SetTitleString(this); @@ -158,7 +158,7 @@ void CTableFileEdit::OnTableEditFileSaveAs() { } if (!m_PageList.SaveTable(dlg_open.GetPathName().GetBuffer(0))) { - MessageBox("The save was unsuccessfull", "Save Table Error!"); + MessageBox("The save was unsuccessful", "Save Table Error!"); return; } m_PageList.SetTitleString(this); diff --git a/editor/TableFileFilter.cpp b/editor/TableFileFilter.cpp index 9aa677a2..87f33b37 100644 --- a/editor/TableFileFilter.cpp +++ b/editor/TableFileFilter.cpp @@ -183,7 +183,7 @@ void TableFileFilter::OnFileSave() { CWaitCursor wc; if (!m_PageList.SaveList(NULL)) { - MessageBox("The save was unsuccessfull", "Save Table Error!"); + MessageBox("The save was unsuccessful", "Save Table Error!"); return; } m_PageList.SetTitleString(); @@ -200,7 +200,7 @@ void TableFileFilter::OnFileSaveAs() { CWaitCursor wc; if (!m_PageList.SaveList(dlg_open.GetPathName().GetBuffer(0))) { - MessageBox("The save was unsuccessfull", "Save Data List Error!"); + MessageBox("The save was unsuccessful", "Save Data List Error!"); return; } @@ -221,7 +221,7 @@ void TableFileFilter::OnFileLoad() { CWaitCursor wc; if (!m_PageList.LoadList(dlg_open.GetPathName().GetBuffer(0))) { - MessageBox("The load was unsuccessfull", "Load Data List Error!"); + MessageBox("The load was unsuccessful", "Load Data List Error!"); m_PageList.ClearList(); return; } @@ -305,7 +305,7 @@ void TableFileFilter::OnBtnCreateNewTableFile() { CWaitCursor wc; if (!m_PageList.CreateNewTableFile(dlg_open.GetPathName().GetBuffer(0), SOURCE_TABLE_FILENAME)) { - MessageBox("The save was unsuccessfull", "Save Table File Error!"); + MessageBox("The save was unsuccessful", "Save Table File Error!"); return; } diff --git a/editor/editorDoc.cpp b/editor/editorDoc.cpp index 949e1f09..fdfa8f50 100644 --- a/editor/editorDoc.cpp +++ b/editor/editorDoc.cpp @@ -260,7 +260,7 @@ BOOL CEditorDoc::OnSaveDocument(LPCTSTR lpszPathName) { " 4. Use File/Save As to save with the real name.\n\n" "Matt & Samir are working on this problem."); - // If the Save was successfull, handle the Dallas coordination + // If the Save was successful, handle the Dallas coordination if (retval) { // If Dallas is up, change its filenames diff --git a/legacy/renderer/Direct3D.cpp b/legacy/renderer/Direct3D.cpp index e092090f..1a628dff 100644 --- a/legacy/renderer/Direct3D.cpp +++ b/legacy/renderer/Direct3D.cpp @@ -2634,7 +2634,7 @@ void d3d_SetAlphaValue(uint8_t val) { } // Sets the overall alpha scale factor (all alpha values are scaled by this value) -// usefull for motion blur effect +// useful for motion blur effect void d3d_SetAlphaFactor(float val) { d3d_Alpha_factor = val; } // Returns the current Alpha factor diff --git a/legacy/renderer/opengl.cpp b/legacy/renderer/opengl.cpp index 19a802e1..43640d59 100644 --- a/legacy/renderer/opengl.cpp +++ b/legacy/renderer/opengl.cpp @@ -2239,7 +2239,7 @@ void opengl_SetAlphaValue(uint8_t val) { } // Sets the overall alpha scale factor (all alpha values are scaled by this value) -// usefull for motion blur effect +// useful for motion blur effect void opengl_SetAlphaFactor(float val) { OpenGL_Alpha_factor = val; } // Returns the current Alpha factor diff --git a/legacy/renderer/renderer.cpp b/legacy/renderer/renderer.cpp index ae50631e..a8949976 100644 --- a/legacy/renderer/renderer.cpp +++ b/legacy/renderer/renderer.cpp @@ -1450,7 +1450,7 @@ void rend_SetAlphaValue(uint8_t val) { } // Sets the overall alpha scale factor (all alpha values are scaled by this value) -// usefull for motion blur effect +// useful for motion blur effect void rend_SetAlphaFactor(float val) { if (val < 0.0f) val = 0.0f; diff --git a/lib/demofile.h b/lib/demofile.h index 40a974b4..67eadf0d 100644 --- a/lib/demofile.h +++ b/lib/demofile.h @@ -155,7 +155,7 @@ extern uint16_t Demo_obj_map[MAX_OBJECTS]; #define DT_SETOBJLIFELEFT 25 // Object is getting OF_LIFELEFT flag changed #define DT_2D_SOUND 26 // Play a 2d sound -// If not recording prompts user for filename and starts recording if successfull +// If not recording prompts user for filename and starts recording if successful // If recording, close the demo file void DemoToggleRecording(); diff --git a/lib/renderer.h b/lib/renderer.h index d0f5b18e..9a05bb85 100644 --- a/lib/renderer.h +++ b/lib/renderer.h @@ -531,7 +531,7 @@ void rend_SetAlphaType(int8_t); void rend_SetAlphaValue(uint8_t val); // Sets the overall alpha scale factor (all alpha values are scaled by this value) -// usefull for motion blur effect +// useful for motion blur effect void rend_SetAlphaFactor(float val); // Returns the current Alpha factor diff --git a/networking/networking.cpp b/networking/networking.cpp index 20338821..f4943aa6 100644 --- a/networking/networking.cpp +++ b/networking/networking.cpp @@ -2275,7 +2275,7 @@ int nw_ReccomendPPS() { // Register the networking library to call your function back // When data containing your ID is found -// Returns non-zero if succesfull, Zero if this ID is already registered +// Returns non-zero if succesful, Zero if this ID is already registered int nw_RegisterCallback(NetworkReceiveCallback nfp, uint8_t id) { ASSERT(id < 16); diff --git a/renderer/HardwareBaseGPU.cpp b/renderer/HardwareBaseGPU.cpp index fda7d407..80f01630 100644 --- a/renderer/HardwareBaseGPU.cpp +++ b/renderer/HardwareBaseGPU.cpp @@ -189,7 +189,7 @@ void rend_SetZBias(float z_bias) { } // Sets the overall alpha scale factor (all alpha values are scaled by this value) -// usefull for motion blur effect +// useful for motion blur effect void rend_SetAlphaFactor(float val) { gpu_Alpha_factor = std::clamp(val, 0.0f, 1.0f); }