core/systems/PluginSys.cpp
changeset 450 4af70fceaa7f
parent 430 ed37e9767ed4
child 457 9b8a85bf4175
     1.1 --- a/core/systems/PluginSys.cpp	Wed Feb 07 19:30:53 2007 +0000
     1.2 +++ b/core/systems/PluginSys.cpp	Wed Feb 07 19:34:58 2007 +0000
     1.3 @@ -478,7 +478,6 @@
     1.4  	if (stat(path, &s) != 0)
     1.5  #endif
     1.6  	{
     1.7 -		g_Logger.LogError("Could not obtain plugin time stamp, error: %d", errno);
     1.8  		return 0;
     1.9  	} else {
    1.10  		return s.st_mtime;
    1.11 @@ -1625,12 +1624,8 @@
    1.12  		{
    1.13  			UnloadPlugin((IPlugin *)pl);
    1.14  		} else if (pl->GetType() == PluginType_MapUpdated) {
    1.15 -			t=pl->GetFileTimeStamp();
    1.16 -			if (!t)
    1.17 -			{
    1.18 -				continue;
    1.19 -			}
    1.20 -			if (t > pl->GetTimeStamp())
    1.21 +			t = pl->GetFileTimeStamp();
    1.22 +			if (!t || t > pl->GetTimeStamp())
    1.23  			{
    1.24  				pl->SetTimeStamp(t);
    1.25  				UnloadPlugin((IPlugin *)pl);