travis build failure on 1 of 7 configurations

This commit is contained in:
nhmall
2019-12-05 20:46:13 -05:00
parent d3ba4c85f0
commit cb20548d17
2 changed files with 3 additions and 3 deletions

View 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] )

View 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]);