(svn r15126) -Feature: downloading content from a central server (content.openttd.org) where authors can upload they NewGRFS/AI etc. This should make joining servers that use only NewGRFs that are distributed via this system easier as the players can download the NewGRFs from in the game. It should also make it easier to see whether there are updates for NewGRFs and make the necessary updates.

This commit is contained in:
rubidium
2009-01-17 16:53:32 +00:00
parent 3940ed7e6f
commit 72b0341ed0
23 changed files with 2150 additions and 20 deletions

View File

@@ -119,6 +119,17 @@ public:
return this->Find(item) != this->End();
}
/** Removes given item from this map
* @param item item to remove
* @return true iff key was found
* @note it has to be pointer to item in this map. It is overwritten by the last item.
*/
FORCEINLINE void Erase(T *item)
{
assert(item >= this->Begin() && item < this->End());
*item = this->data[--this->items];
}
/**
* Tests whether a item is present in the vector, and appends it to the end if not.
* The '!=' operator of T is used for comparison.