mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Use / as command prefix
This commit is contained in:
		| @@ -1155,9 +1155,12 @@ void CInGameConsole::endEnteringText(bool processEnteredText) | ||||
| 		LOCPLINT->cb->sendMessage(txt, LOCPLINT->getSelection()); | ||||
| 		previouslyEntered.push_back(txt); | ||||
|  | ||||
| 		//some commands like gosolo don't work when executed from GUI thread | ||||
| 		boost::thread clientCommandThread(ClientCommandManager::processCommand, txt, true); | ||||
| 		clientCommandThread.join(); | ||||
| 		if(txt.at(0) == '/') | ||||
| 		{ | ||||
| 			//some commands like gosolo don't work when executed from GUI thread | ||||
| 			boost::thread clientCommandThread(ClientCommandManager::processCommand, txt.substr(1), true); | ||||
| 			clientCommandThread.join(); | ||||
| 		} | ||||
| 	} | ||||
| 	enteredText.clear(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user