* Minor char packet documentation efforts.

git-svn-id: https://svn.paradoxsystems.net/trunk@15239 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Fixed missing libraries for mapcache and converter projects.

git-svn-id: https://svn.paradoxsystems.net/trunk@15240 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Added support for NPC IDs over 10000 for 2012-08-08aRagexeRE or newer; other clients show Porings or crash depending on age for that range.
- This also cuts down on the amount (1000 -> ~400) of NPC view data held in memory as it is now allocated on demand.

git-svn-id: https://svn.paradoxsystems.net/trunk@15241 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Minor cleaning in cbasetypes.

git-svn-id: https://svn.paradoxsystems.net/trunk@15242 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Cleaned up mapindex.
- Name2id queries are now backed by a dbmap.
- Simplyfied handling of the error value 0, as there is no need to explicitely store an index for it.
- The "generate map index" feature in mapindex_addmap has been changed to use the reserved error value 0 instead of -1, so that the types can be properly unsigned.
- Fixed a no-op in mapindex_getmapname_ext where a strncpy was fed aliased source as destination buffer when a temporary buffer was used as destination.
- Updated errors/warnings to contain more usable information.
- Fixed mapindex_getmapname_ext spending to much effort on making crippled mapnames (too long ones) look even more crippled (cut-off extension+extension).
- Generated temporary map indexes are now stored after the last permanent map index, gap search is no longer performed on the permanent index range.

git-svn-id: https://svn.paradoxsystems.net/trunk@15243 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Minor cleaning in mmo.

git-svn-id: https://svn.paradoxsystems.net/trunk@15244 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Cleaned up nullpo.
- Removed unused and non-portable nullpo checks with formatted message.
- Removed stand-alone nullpo reporting, any in-place error message will do a better job.

git-svn-id: https://svn.paradoxsystems.net/trunk@15245 54d463be-8e91-2dee-dedb-b68131a5f0ec
* More agressive cleaning of nullpo.

git-svn-id: https://svn.paradoxsystems.net/trunk@15246 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Moved conf/mapflag to npc/mapflag, as mapflags are scripts (related ra:17347).


git-svn-id: https://svn.paradoxsystems.net/trunk@15247 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Follow up to r15247.

git-svn-id: https://svn.paradoxsystems.net/trunk@15248 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Fixed dead characters would be immune to SC_NOCHAT, that is, GM mute in all of it's forms (thread:12, since r4308, related r1142 and r5348).

git-svn-id: https://svn.paradoxsystems.net/trunk@15249 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Fixed signed/unsigned conflicts, where deemed safe.

git-svn-id: https://svn.paradoxsystems.net/trunk@15250 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Deobfuscated malloc's pointer arithmetic.
- Fixed hash_unfill would be initialized in memmgr_init after potential memory use, rather than before (since r12200).

git-svn-id: https://svn.paradoxsystems.net/trunk@15251 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Whitespace.

git-svn-id: https://svn.paradoxsystems.net/trunk@15252 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Malloc Cleaning.
- Translated/fixed some comments.
- Fixed type format in ShowError.

git-svn-id: https://svn.paradoxsystems.net/trunk@15253 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Malloc Cleaning.
- Changed check in _mmalloc that prevents more than 2GB of memory from being allocated at once, to be a warning instead.
- Added a assertion to _mcalloc to detect multiplication-overflows.

git-svn-id: https://svn.paradoxsystems.net/trunk@15254 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Updates to sql.
- Added Sql_AffectedRows and SqlStmt_AffectedRows for retrieving amount of affected rows.
- Made Sql_P_Keepalive register the name of it's timer function.
- Minor cleaning.

git-svn-id: https://svn.paradoxsystems.net/trunk@15255 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Removed RFIFOHEAD leftover (follow up to r10599).
- Minor socket code cleaning.

git-svn-id: https://svn.paradoxsystems.net/trunk@15256 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Fixed wrong parentheses in status_calc_regen_rate, causing an impossible condition ( C4806: no value of type 'bool' promoted to type 'int' can equal the given constant ), which in turn causes SP regen to continue while under SC_EXTREMITYFIST/SC_EXPLOSIONSPIRITS statuses (since r14929).

git-svn-id: https://svn.paradoxsystems.net/trunk@15257 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Updates to db.
- Iterators now use ERS, as they have a great share on alloc/free spam on map-server.
- Minor cleaning.

git-svn-id: https://svn.paradoxsystems.net/trunk@15258 54d463be-8e91-2dee-dedb-b68131a5f0ec