mirror of
https://github.com/glest/glest-source.git
synced 2025-08-29 19:00:07 +02:00
you can only enter games with same version number ( in masterserver menu )
version set to 3.3.5-dev
This commit is contained in:
@@ -56,7 +56,10 @@ bool GraphicComponent::mouseMove(int x, int y){
|
||||
}
|
||||
|
||||
bool GraphicComponent::mouseClick(int x, int y){
|
||||
return mouseMove(x, y);
|
||||
if(getEnabled()&&getEditable())
|
||||
return mouseMove(x, y);
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
void GraphicComponent::update(){
|
||||
|
@@ -26,7 +26,7 @@ using namespace Shared::Platform;
|
||||
namespace Glest{ namespace Game{
|
||||
|
||||
const string mailString= "contact_game@glest.org";
|
||||
const string glestVersionString= "v3.3.5-alpha2";
|
||||
const string glestVersionString= "v3.3.5-dev";
|
||||
|
||||
string getCrashDumpFileName(){
|
||||
return "glest" + glestVersionString + ".dmp";
|
||||
|
@@ -605,7 +605,7 @@ void MenuStateCustomGame::update()
|
||||
//printf("FYI we have at least 1 client connected, slot = %d'\n",i);
|
||||
|
||||
haveAtLeastOneNetworkClientConnected = true;
|
||||
if(connectionSlot->getName()!="")
|
||||
if(connectionSlot->getConnectHasHandshaked())
|
||||
currentConnectionCount++;
|
||||
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s] B - ctNetwork\n",__FILE__,__FUNCTION__);
|
||||
|
||||
@@ -744,6 +744,7 @@ void MenuStateCustomGame::update()
|
||||
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
||||
if(currentConnectionCount>soundConnectionCount){
|
||||
soundConnectionCount=currentConnectionCount;
|
||||
SoundRenderer::getInstance().playFx(CoreData::getInstance().getAttentionSound());
|
||||
}
|
||||
soundConnectionCount=currentConnectionCount;
|
||||
|
@@ -86,6 +86,11 @@ ServerLine::ServerLine( MasterServerInfo *mServerInfo, int lineIndex)
|
||||
i+=50;
|
||||
selectButton.init(i, startOffset-lineOffset, 30);
|
||||
selectButton.setText(">");
|
||||
if(glestVersionString!=masterServerInfo->getGlestVersion())
|
||||
{
|
||||
selectButton.setEnabled(false);
|
||||
selectButton.setEditable(false);
|
||||
}
|
||||
}
|
||||
|
||||
ServerLine::~ServerLine(){
|
||||
|
Reference in New Issue
Block a user