[Scummvm-git-logs] scummvm master -> 0145ab3f6c616eb4359d0a3a35363f528d7d48b9

bluegr noreply at scummvm.org
Sun Jul 28 18:58:10 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
0145ab3f6c JANITORIAL: CHAMBER: Fix typos in comments


Commit: 0145ab3f6c616eb4359d0a3a35363f528d7d48b9
    https://github.com/scummvm/scummvm/commit/0145ab3f6c616eb4359d0a3a35363f528d7d48b9
Author: Hubert Maier (raziel- at users.noreply.github.com)
Date: 2024-07-28T21:58:07+03:00

Commit Message:
JANITORIAL: CHAMBER: Fix typos in comments

Changed paths:
    engines/chamber/cga.cpp
    engines/chamber/kult.cpp
    engines/chamber/menu.cpp
    engines/chamber/resdata.cpp
    engines/chamber/script.cpp


diff --git a/engines/chamber/cga.cpp b/engines/chamber/cga.cpp
index 3d08b00320c..8c034100f12 100644
--- a/engines/chamber/cga.cpp
+++ b/engines/chamber/cga.cpp
@@ -491,7 +491,7 @@ void cga_DrawHLine(uint16 x, uint16 y, uint16 l, byte color, byte *target) {
 /*
 Draw horizontal line of length l with color, add surrounding pixels (bmask, bpix, left in high byte, right in low)
 Return next line screen offset
-NB! Length specifies byte lenght of inner segment, not amount of pixels
+NB! Length specifies byte length of inner segment, not amount of pixels
  */
 uint16 cga_DrawHLineWithEnds(uint16 bmask, uint16 bpix, byte color, uint16 l, byte *target, uint16 ofs) {
 	target[ofs] = (target[ofs] & (bmask >> 8)) | (bpix >> 8);
@@ -514,7 +514,7 @@ Print a character at current cursor pos, then advance
 void cga_PrintChar(byte c, byte *target) {
 	uint16 i;
 	byte *font = carpc_data + c * g_vm->_fontHeight;
-	uint16 ofs = cga_CalcXY_p(char_draw_coords_x++, char_draw_coords_y); // TODO: hga_calcxy_p doesnt work with this??
+	uint16 ofs = cga_CalcXY_p(char_draw_coords_x++, char_draw_coords_y); // TODO: hga_calcxy_p doesn't work with this??
 	for (i = 0; i < g_vm->_fontHeight; i++) {
 		c = *font++;
 		c = char_xlat_table[c];
@@ -1592,4 +1592,4 @@ void cga_ZoomInplaceXY(byte *pixels, byte w, byte h, byte nw, byte nh, uint16 x,
 	cga_ZoomInplace(&zoom, nw, nh, target, target, CalcXY_p(x, y));
 }
 
-} // End of namespace Chamber
\ No newline at end of file
+} // End of namespace Chamber
diff --git a/engines/chamber/kult.cpp b/engines/chamber/kult.cpp
index 9b048e5ce76..05e74782f40 100644
--- a/engines/chamber/kult.cpp
+++ b/engines/chamber/kult.cpp
@@ -299,7 +299,7 @@ Common::Error ChamberEngine::init() {
 	if (_shouldQuit)
 		return Common::kNoError;
 
-	/* Patch resource names for choosen language */
+	/* Patch resource names for chosen language */
 	res_texts[0].name[4] = c;
 	res_texts[1].name[4] = c;
 	res_desci[0].name[4] = c;
@@ -324,7 +324,7 @@ Common::Error ChamberEngine::init() {
 	while (!loadFond() || !loadSpritesData() || !loadPersData())
 		askDisk2();
 
-	/*TODO: is this neccessary?*/
+	/*TODO: is this necessary?*/
 	cga_BackBufferToRealFull();
 
 	/* Create clean game state snapshot */
diff --git a/engines/chamber/menu.cpp b/engines/chamber/menu.cpp
index 7d9df040c1a..4c655e3dc04 100644
--- a/engines/chamber/menu.cpp
+++ b/engines/chamber/menu.cpp
@@ -200,7 +200,7 @@ void processMenu(void) {
 rect_t menu_buttons_rects[] = {
 	{296 / 4, 312 / 4,  15,  30},   /*Room's Objects*/
 	{296 / 4, 312 / 4,  40,  56},   /*Psi Powers*/
-	{296 / 4, 312 / 4,  56,  72},   /*Posessions*/
+	{296 / 4, 312 / 4,  56,  72},   /*Possessions*/
 	{296 / 4, 312 / 4,  72,  88},   /*Energy Level*/
 	{296 / 4, 312 / 4,  88, 104},   /*Wait*/
 	{296 / 4, 312 / 4, 104, 120},   /*Load*/
diff --git a/engines/chamber/resdata.cpp b/engines/chamber/resdata.cpp
index 29dd2733914..c82fca622bc 100644
--- a/engines/chamber/resdata.cpp
+++ b/engines/chamber/resdata.cpp
@@ -266,7 +266,7 @@ ResEntry_t res_person[] = {
 
 int16 loadPersData(void) {
 	/*Originally it tries to load pers1 + pers2 as a single contiguos resource, if have enough memory*/
-	/*If memory is low, neccessary file is loaded on demand, according to requested bank resource index*/
+	/*If memory is low, necessary file is loaded on demand, according to requested bank resource index*/
 	/*Here we load both parts to their own memory buffers then select one in LoadPersSprit()*/
 	return loadFilesList(res_person);
 }
diff --git a/engines/chamber/script.cpp b/engines/chamber/script.cpp
index 3fa8de5a1e0..ebe725e1a58 100644
--- a/engines/chamber/script.cpp
+++ b/engines/chamber/script.cpp
@@ -3634,7 +3634,7 @@ uint16 CMD_11_PsiTuneIn(void) {
 			command = 275;
 	}
 
-	/*TODO: is this really neccessary? Maybe it's always set when loaded from script vars?*/
+	/*TODO: is this really necessary? Maybe it's always set when loaded from script vars?*/
 	if (command & 0x8000) {
 		the_command = command;
 		return ScriptRerun;




More information about the Scummvm-git-logs mailing list