Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mukunda- committed Mar 3, 2015
1 parent f8516b5 commit df3cc11
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions plugin/servertools.sp
Expand Up @@ -27,8 +27,10 @@

#pragma semicolon 1

#define PLUGIN_VERSION "3.0.3"
#define PLUGIN_VERSION "3.0.4"

// 3.0.4
// fix game dir scan
// 3.0.3
// run sync in onpluginstart.
// 3.0.2
Expand Down Expand Up @@ -654,7 +656,10 @@ bool:FormatLocalPath( String:output[], maxlen, const String:path[] ) {

} else if( strncmp( path, "game/", 5 ) == 0 ) {
Format( output, maxlen, path[5] );
if( output[0] == 0 ) output = ".";

if( output[0] == 0 ) {
strcopy( output, maxlen, "/" );
}

} else if( strncmp( path, "cfg/", 4 ) == 0 ) {
Format( output, maxlen, "cfg/%s", path[4] );
Expand Down

0 comments on commit df3cc11

Please sign in to comment.