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:
ac_stef
2008-08-24 21:21:54 +00:00
parent bbe0256fc5
commit 43ad3b5a87
3 changed files with 93 additions and 14 deletions
+7
View File
@@ -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, '/');