autosendmap: provide maps by the server (including learning new maps)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2380 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -46,6 +46,13 @@ char *path(const char *s, bool copy)
|
||||
return tmp;
|
||||
}
|
||||
|
||||
const char *behindpath(const char *s)
|
||||
{
|
||||
const char *t = s;
|
||||
for( ; (s = strpbrk(s, "/\\")); t = ++s);
|
||||
return t;
|
||||
}
|
||||
|
||||
const char *parentdir(const char *directory)
|
||||
{
|
||||
const char *p = strrchr(directory, '/');
|
||||
|
||||
Reference in New Issue
Block a user