Description: Fix typos in the borg code Author: Chris Carr Forwarded: not yet Last-Update: 2023-09-17 --- a/src/borg/borg1.c +++ b/src/borg/borg1.c @@ -470,7 +470,7 @@ int morgy_panel_x; int borg_target_y; -int borg_target_x; /* Current targetted location */ +int borg_target_x; /* Current targeted location */ int c_x; /* Current location (X) */ int c_y; /* Current location (Y) */ --- a/src/borg/borg1.h +++ b/src/borg/borg1.h @@ -1362,7 +1362,7 @@ extern int morgy_panel_x; extern int borg_target_y; -extern int borg_target_x; /* Current targetted location */ +extern int borg_target_x; /* Current targeted location */ extern int c_x; /* Current location (X) */ extern int c_y; /* Current location (Y) */ --- a/src/borg/borg3.c +++ b/src/borg/borg3.c @@ -2850,7 +2850,7 @@ const struct class_spell* cspell = spell_by_index(player, spell_num); if (strcmp(cspell->name, borg_spell_ratings[spell_num].name)) { - borg_note(format("**STARTUP FAILURE** spell definition missmatch. <%s> not the same as <%s>", cspell->name, borg_spell_ratings[spell_num].name)); + borg_note(format("**STARTUP FAILURE** spell definition mismatch. <%s> not the same as <%s>", cspell->name, borg_spell_ratings[spell_num].name)); borg_init_failure = true; return; } --- a/src/borg/borg6.c +++ b/src/borg/borg6.c @@ -3571,7 +3571,7 @@ /* Note if ignorig messages */ if (borg_dont_react) { - borg_note("# Borg ignoring messges."); + borg_note("# Borg ignoring messages."); } /* Look around */ @@ -4455,7 +4455,7 @@ */ if (k > b_k) continue; - /* Record the danger of this prefered grid */ + /* Record the danger of this preferred grid */ g_k = k; /* Check the freedom there */ @@ -5226,7 +5226,7 @@ struct monster_race* r_ptr; borg_kill* kill; - borg_note(format("# Perhaps wall near targetted location (%d,%d)", y, x)); + borg_note(format("# Perhaps wall near targeted location (%d,%d)", y, x)); /* Determine "path" */ n_x = c_x; @@ -6277,7 +6277,7 @@ /* Bounds Check */ if (dist && !square_in_bounds_fully(cave, loc(x, y))) break; - /* Get the grid of the targetted monster */ + /* Get the grid of the targeted monster */ ag = &borg_grids[y2][x2]; kill = &borg_kills[ag->kill]; r_ptr = &r_info[kill->r_idx]; --- a/src/borg/borg8.c +++ b/src/borg/borg8.c @@ -2768,7 +2768,7 @@ if (shop_num != goal_shop) borg_note(format("# Currently in store '%d' would prefer '%d'.", shop_num + 1, goal_shop + 1)); else - borg_note(format("# Currently in prefered store '%d'.", goal_shop + 1)); + borg_note(format("# Currently in preferred store '%d'.", goal_shop + 1)); /* Try to sell stuff */ --- a/src/borg/borg9.c +++ b/src/borg/borg9.c @@ -851,7 +851,7 @@ /* Flush our key-buffer */ borg_flush(); - /* If we were casting a targetted spell and failed */ + /* If we were casting a targeted spell and failed */ /* it does not mean we can't target that location */ successful_target = 0; @@ -3762,7 +3762,7 @@ depth_num >= z_info->max_depth || item_num >= (z_info->k_max + z_info->k_max + z_info->a_max + BI_MAX)) { - borg_note("Malformed item requirment in borg.txt: value out of range"); + borg_note("Malformed item requirement in borg.txt: value out of range"); return false; } /* The class 999 is for all classes */ @@ -3796,12 +3796,12 @@ if (-1000 == (class_num = borg_getval(&string, "_CLASS"))) { - borg_note("Malformed item requirment in borg.txt"); + borg_note("Malformed item requirement in borg.txt"); return false; } if (-1000 == (depth_num = borg_getval(&string, "_DEPTH"))) { - borg_note("Malformed item requirment in borg.txt"); + borg_note("Malformed item requirement in borg.txt"); return false; } if (-1000 != (item_num = borg_getval(&string, "_FORMULA"))) @@ -3839,7 +3839,7 @@ return add_required_item(class_num, depth_num, item_num, number_items); } } - borg_note("Malformed item requirment in borg.txt"); + borg_note("Malformed item requirement in borg.txt"); return false; } @@ -6087,7 +6087,7 @@ case 'f': case 'F': { - msg("Command No Longer Usefull"); + msg("Command No Longer Useful"); break; } } @@ -6243,7 +6243,7 @@ break; } - /* Display Feature of a targetted grid */ + /* Display Feature of a targeted grid */ case 'G': { int y = 1; @@ -6333,7 +6333,7 @@ } - /* Display Info of a targetted grid */ + /* Display Info of a targeted grid */ case 'I': { int i;