1. minirop
  2. KVNS

Commits

minirop  committed 08326cd

remove gosub statement

  • Participants
  • Parent commits 23cea40
  • Branches default

Comments (0)

Files changed (2)

File GameWidget.cpp

View file
  • Ignore whitespace
 {
 	m_music = 0;
 	isClosing = false;
-	gosubDepth = 0;
+	//gosubDepth = 0;
 	setScaledContents(true);
 	
 	m_textbox = new Textbox;
 					currentSavedPos--;
 					i = list.length();
 				}
-				else if(name == "gosub")
+				/*else if(name == "gosub")
 				{
 					currentSavedPos++;
 					gosubDepth++;
 					evaluateGosub(e);
 					gosubDepth--;
 					currentSavedPos--;
-				}
+				}*/
 				else if(m_XmlPlugins.contains(name))
 					m_XmlPlugins[name]->evaluateNode(name, this, e);
 			}
 	{
 		start();
 	}
-	else if(!nested && !gosubDepth)
+	else if(!nested /*&& !gosubDepth*/)
 	{
 		emit gameFinished();
 	}
 	m_music->play();
 	m_music->setVolume(elem.attribute("volume", "100").toInt());
 }
-
+/*
 void GameWidget::evaluateGosub(QDomElement elem)
 {
 	currentArc = parseVariable(elem.attribute("name"));
 	if(!MainWindow::isClosing)
 		evaluate();
 }
-
+*/
 void GameWidget::evaluateGoto(QDomElement elem)
 {
 	currentArc = parseVariable(elem.attribute("name"));

File GameWidget.h

View file
  • Ignore whitespace
 	void evaluateHide(QDomElement elem);
 	void evaluateHideall(QDomElement elem);
 	void evaluateGoto(QDomElement elem);
-	void evaluateGosub(QDomElement elem);
+	//void evaluateGosub(QDomElement elem);
 	void evaluateImage(QDomElement elem);
 	void evaluateMusic(QDomElement elem);
 	void evaluateVideo(QDomElement elem);
 	QString currentArc;
 	QString firstArc;
 	QString arcsDir;
-	int gosubDepth;
+	//int gosubDepth;
 	QDomNodeList nodesArc;
 	Textbox* m_textbox;
 	Music* m_music;