fix typos

This commit is contained in:
RainRat
2024-02-28 20:15:56 -08:00
parent b53a43027f
commit a3658f85ac
167 changed files with 320 additions and 320 deletions
+4 -4
View File
@@ -158,7 +158,7 @@ NetHackQtBind::qt_Splash()
capt->repaint();
qApp->processEvents();
} else {
splash = 0; // caller has alrady done this...
splash = 0; // caller has already done this...
}
}
@@ -591,7 +591,7 @@ int NetHackQtBind::qt_nhgetch()
* On OSX (possibly elsewhere), this prevents an infinite
* loop repeatedly issuing the complaint:
QCoreApplication::exec: The event loop is already running
* to stderr if you syncronously start nethack from a terminal
* to stderr if you synchronously start nethack from a terminal
* then switch focus back to that terminal and type ^C.
* SIGINT -> done1() -> done2() -> yn_function("Really quit?")
* in the core asks for another keystroke.
@@ -766,7 +766,7 @@ char NetHackQtBind::qt_yn_function(const char *question_,
char cbuf[20];
cbuf[0] = '\0';
// add the prompt to the messsage window
// add the prompt to the message window
NetHackQtBind::qt_putstr(WIN_MESSAGE, ATR_BOLD, message);
while (result < 0) {
@@ -848,7 +848,7 @@ void NetHackQtBind::qt_getlin(const char *prompt, char *line)
keybuffer.Drain();
}
// add the prompt with appended response to the messsage window
// add the prompt with appended response to the message window
char buf[BUFSZ + 20], *q; /* +20: plenty of extra room for visctrl() */
copynchars(buf, prompt, BUFSZ - 1);
q = eos(buf);
+1 -1
View File
@@ -525,7 +525,7 @@ void NetHackQtMapViewport::Clear()
{
for (int j = 0; j < ROWNO; ++j) {
//
// FIXME: map column 0 should be surpressed from being displayed
// FIXME: map column 0 should be suppressed from being displayed
//
Glyph(0, j) = GLYPH_NOTHING;
Glyphttychar(0, j) = ' ';
+1 -1
View File
@@ -221,7 +221,7 @@ NetHackQtGlyphs& NetHackQtSettings::glyphs()
{
// Caveat:
// 'theglyphs' will be Null if the tiles file couldn't be loaded;
// the game can still procede with an ascii map in that situation.
// the game can still proceed with an ascii map in that situation.
return *theglyphs;
}
+3 -3
View File
@@ -48,7 +48,7 @@
// with a separator between Cha:NN and it. Time, when active, is
// placed after Gold. Score, if enabled and active, is shown in the
// filler slot before Gold. When there are no Conditions to display,
// there is an an invisible fake one (blank icon over blank text)
// there is an invisible fake one (blank icon over blank text)
// rendered in order to preserve the vertical space they need.
//
// FIXME:
@@ -60,7 +60,7 @@
// There are separate icons for Satiated and Hungry, but Weak, Fainting,
// and Fainted all share the Hungry one. Weak should have its own,
// Fainting+Fainted should have another. The current two depict
// plates with cutlery which is a bit of an anachronism. Statiated
// plates with cutlery which is a bit of an anachronism. Satiated
// could be replaced by a figure in profile with a bulging belly,
// Hungry similar but with a slightly concave belly, Weak either a
// collapsing figure or a much larger concavity or both, Fainting/
@@ -315,7 +315,7 @@ NetHackQtStatusWindow::NetHackQtStatusWindow() :
statbox->addWidget(&time);
}
vbox->addLayout(statbox);
vbox->addWidget(&hline3); // separtor before Time+Score or Conditions
vbox->addWidget(&hline3); // separator before Time+Score or Conditions
if (spreadout) {
// when not condensed, put Time and Score on an extra row; since
// they're both optionally displayed, their row might be empty
+2 -2
View File
@@ -28,14 +28,14 @@
// be able to sort by role or by game start date or by save date.
// The core fetches character names from inside the files; it could
// obtain the information needed for alternate sorting. Simpler
// enchancement: instead of just showing the character name, show
// enhancement: instead of just showing the character name, show
// "name-role-race-gender-alignment".
//
// Note:
// The code in this file is not used if the program is built without
// having SELECTSAVED defined or if the run-time option 'selectsaved'
// is False. SELECTSAVED used to be forced for Qt but isn't any more.
// Howver, we include this code unconditionally.
// However, we include this code unconditionally.
//
extern "C" {
+1 -1
View File
@@ -22,7 +22,7 @@
// and also because this is my first major application of Qt.
//
// The problem of NetHack's getkey requirement is solved by intercepting
// key events by overiding QApplication::notify(...), and putting them in
// key events by overriding QApplication::notify(...), and putting them in
// a buffer. Mouse clicks on the map window are treated with a similar
// buffer. When the NetHack engine calls for a key, one is taken from
// the buffer, or if that is empty, QApplication::exec() is called.
+1 -1
View File
@@ -36,7 +36,7 @@
// used to select the shorter while still providing opportunity to type
// more of the longer command; (there are several such cases:
// "#drop[type]", "#known[class]", "#takeoff[all]", "#version[short]");
// button is left justitied (prior to addition of the filter/layout/reset
// button is left justified (prior to addition of the filter/layout/reset
// buttons, [Cancel] stretched all the way across the top of the widget);
// [Filter] toggles between normal and autocomplete when playing in normal
// or explore mode, cycles through "all", "normal", "autocomplete", and
+1 -1
View File
@@ -1,6 +1,6 @@
// qt_xpms.h - static xpm arrays for use in status display
//
// In alhpabetical order by array name. Probably not the best ordering...
// In alphabetical order by array name. Probably not the best ordering...
/* clang-format off */
+1 -1
View File
@@ -196,7 +196,7 @@ char NetHackQtYnDialog::Exec()
QString button_name = QString(visctrl((char) ch[i].cell()));
if (is_yn || is_ynq || is_ynaq || is_lr) {
// FIXME: a better way to recognize which labels should
// use alterate text is needed
// use alternate text is needed
switch (ch[i].cell()) {
case 'y':
button_name = "Yes";
+1 -1
View File
@@ -20,7 +20,7 @@ private:
QLineEdit *le;
QPushButton *y_btn;
// abritrary size; might need to be more sophisicated someday
// arbitrary size; might need to be more sophisticated someday
char alt_answer[26 + 1], alt_result[26 + 1];
protected: