fixed clue not working
This commit is contained in:
		
							parent
							
								
									2f4cae006c
								
							
						
					
					
						commit
						2af290c60e
					
				@ -50,13 +50,14 @@ bool FourasModule::messageHandler(Message msg)
 | 
				
			|||||||
        if(current != -1)
 | 
					        if(current != -1)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            QString str = riddles->getAnswer(current);
 | 
					            QString str = riddles->getAnswer(current);
 | 
				
			||||||
            answer = "Indice : ";
 | 
					            QString answerStr = "Indice : ";
 | 
				
			||||||
            bool first = true;
 | 
					            bool first = true;
 | 
				
			||||||
            for(QChar c : str)
 | 
					            for(QChar c : str)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                answer.append(first ? QString(c) : QString(" _"));
 | 
					                answerStr.append(first ? QString(c) : QString(" _"));
 | 
				
			||||||
                first = false;
 | 
					                first = false;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            answer = say(answerStr);
 | 
				
			||||||
            return true;
 | 
					            return true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user