]> granicus.if.org Git - nethack/commitdiff
travis build failure on 1 of 7 configurations
authornhmall <nhmall@nethack.org>
Fri, 6 Dec 2019 01:46:13 +0000 (20:46 -0500)
committernhmall <nhmall@nethack.org>
Fri, 6 Dec 2019 01:46:13 +0000 (20:46 -0500)
win/Qt4/qt4main.cpp
win/Qt4/qt4yndlg.cpp

index 291bddc35d79ae7af24d07b33282d228fd7e72a5..694415b248e37973548e5f5ec938a26876dc21bb 100644 (file)
@@ -683,7 +683,7 @@ NetHackQtMainWindow::NetHackQtMainWindow(NetHackQtKeyBuffer& ks) :
     QToolButton* tb;
     char actchar[32];
     tb = new SmallToolButton( QPixmap(again_xpm),"Again","Action", sm, SLOT(map()), toolbar );
-    Sprintf(actchar, "%c", Cmd.spkeys[NHKF_DOAGAIN]);
+    Sprintf(actchar, "%c", g.Cmd.spkeys[NHKF_DOAGAIN]);
     sm->setMapping(tb, actchar );
     toolbar->addWidget(tb);
     tb = new SmallToolButton( QPixmap(get_xpm),"Get","Action", sm, SLOT(map()), toolbar );
@@ -977,7 +977,7 @@ void NetHackQtMainWindow::keyPressEvent(QKeyEvent* event)
        event->key() >= Qt::Key_Left && event->key() <= Qt::Key_Down )
        return;
 
-    const char* d = Cmd.dirchars;
+    const char* d = g.Cmd.dirchars;
     switch (event->key()) {
      case Qt::Key_Up:
        if ( dirkey == d[0] )
index e315189de954936c8282544d47cf3b953d00965a..7b17259240cfaad4d74f896d1fb735679e107d28 100644 (file)
@@ -81,7 +81,7 @@ char NetHackQtYnDialog::Exec()
        }
        if ( question.indexOf("what direction") >= 0 ) {
            // We replace this regardless, since sometimes you get choices.
-           const char* d = Cmd.dirchars;
+           const char* d = g.Cmd.dirchars;
            enable=ch;
            ch="";
            ch.append(d[1]);