summaryrefslogtreecommitdiff
path: root/src/map
AgeCommit message (Collapse)AuthorFilesLines
2016-05-14Replaced 'unsigned int' with 'uint32' (guaranteed size) in all packed structsHaru2-63/+63
Signed-off-by: Haru <haru@dotalux.com>
2016-05-14Replaced 'unsigned short' with 'uint16' (guaranteed size) in all packed structsHaru1-39/+39
Signed-off-by: Haru <haru@dotalux.com>
2016-05-14Replaced 'unsigned char' with 'uint8' (guaranteed size) in all packed structsHaru1-77/+77
Signed-off-by: Haru <haru@dotalux.com>
2016-05-08Fixed various issues pointed out by cppcheckHaru8-63/+59
Signed-off-by: Haru <haru@dotalux.com>
2016-05-01Fixed truncation of `@request` messagesHaru1-2/+2
- The `@request` command still makes an inter-server call. This will be fixed at a later point. Signed-off-by: Haru <haru@dotalux.com>
2016-04-30Moved HPMHooking-related definitions to plugins/HPMHooking.hHaru1-1/+1
- Plugins that want to make use of the HPMHooking must now include "plugins/HPMHooking.h". Signed-off-by: Haru <haru@dotalux.com>
2016-04-30Fixed a warning in VS2015Haru1-6/+7
Signed-off-by: Haru <haru@dotalux.com>
2016-04-30Changed the name of two intif functions, incorrectly named mapif_*Haru1-5/+6
- mapif_parse_WisToGM_sub() renamed to intif_parse_WisToGM_sub() - mapif_parse_WisToGM() renamed to intif_parse_WisToGM_sub() Signed-off-by: Haru <haru@dotalux.com>
2016-04-30Corrected truncation of the last letter in whisper messagesHaru3-11/+11
- Follow-up to ccfd054 - Fixes #1275 Signed-off-by: Haru <haru@dotalux.com>
2016-04-29Fix issues found by new warnings.Andrei Karas2-1/+2
2016-04-29Fix compilation warnings with gcc 6.Andrei Karas2-11/+11
2016-04-28Corrected truncation of the last letter in party messagesHaru1-13/+15
- Discovered thanks to (and follow-up to) ccfd054 - Fixes #1270 Signed-off-by: Haru <haru@dotalux.com>
2016-04-27Fix unit_data unitialisation.Andrei Karas3-12/+16
Introduce method unit->init_ud.
2016-04-26Corrected two accidentally swapped lines of code in the ircbot ↵Haru1-2/+2
flood-protection settings - Follow-up to 5edc982. Mea culpa. Signed-off-by: Haru <haru@dotalux.com>
2016-04-25Move irc-bot.c documentation to irc-bot.hhemagx2-92/+130
interface a not interfaced function irc_privmsg_ctcp
2016-04-25Added a flood protection to IRC Bothemagx3-14/+144
Now it's possible to send as many messages as possible without get kicked for flood.
2016-04-23Corrected the type of the 'length' argument of other message-related functionsHaru6-12/+12
- Variable types were changed to int - Corrects several warnings in VS2015 - Affected functions: `clif->wis_message()`, `intif->wis_message()`, `intif->guild_change_gm()`. Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Removed the 'len' argument from various message-related functionsHaru8-21/+31
- The argument was redundant, since the passed value is always the same as the passed string's length (it doesn't make sense otherwise). The argument is implicit now. Less typing and less errors. - Affected functions: `clif->bg_message()`, `bg->send_message()`, `party->send_message()`, `guild->send_message()`. Signed-off-by: Haru <haru@dotalux.com> Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Removed the 'len' argument from clif_disp_onlyself() and clif->disp_message()Haru10-36/+38
- The argument was redundant, since the passed value is always the same as the passed string's length (it doesn't make sense otherwise). The argument is implicit now. Less typing and less errors. Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Corrected the type of the 'length' argument of various broadcast-related ↵Haru9-37/+48
functions - Variable types were changed to int - Corrects several warnings in VS2015 - Affected functions: `clif->broadcast()`, `clif->broadcast2()`, `intif->broadcast()`, `intif->broadcast2()` Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Corrected the type for several variables through the codeHaru2-74/+98
- Variable types were changed to int, where it makes sense to - Corrects several warnings in VS2015 Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Changed map_session_data::chatID to int (and renamed to chat_id)Haru8-35/+38
- Chat IDs are signed integers. - Resolves various warnings, depending on the compiler settings. Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Improved parsing of the server name/port in the irc bot configurationHaru1-28/+23
Fixes a VS2015 warning Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Removed some code duplication in chat processing functionsHaru3-72/+37
Moved non-clif code that handles chat delay, atcommand detection, idle timers to pc.c Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Refactored the chat message packet processing functionsHaru3-181/+253
- Split the processing of public chat messages and whisper messages in two functions, to make them more straightforward. Signed-off-by: Haru <haru@dotalux.com>
2016-04-23Split supernovice angel call message detection to its own functionHaru3-32/+57
Signed-off-by: Haru <haru@dotalux.com>
2016-04-22Fixed an issue that could prevent a mvp reward to be ignoredHaru1-45/+47
- During the randomization of the list, an entry could be overwritten under certain (rare) conditions. Signed-off-by: Haru <haru@dotalux.com>
2016-04-19Corrected type for sd->fontcolor_tidHaru1-1/+1
A timer ID should always be a signed int. Signed-off-by: Haru <haru@dotalux.com>
2016-04-16Rewrite client interface for login server (part 1)hemagx1-1/+6
Rewritten incoming/outgoing packet handlers to use structs instead of manipulating the WFIFO buffer bytes directly Signed-off-by: Haru <haru@dotalux.com>
2016-04-16Updated GNU Make build system to support private headersHaru1-9/+12
Signed-off-by: Haru <haru@dotalux.com>
2016-04-04Add missing checks into npc.Andrei Karas1-13/+143
2016-04-04add missing checks into mob.cAndrei Karas1-7/+88
2016-04-04Add missing checks into mercenary.cAndrei Karas1-2/+15
2016-04-04Add missing checks into mapreg_sql.cAndrei Karas1-0/+7
2016-04-04Add missing checks into map.cAndrei Karas1-13/+101
2016-04-04Merge pull request #1210 from HerculesWS/wcast_qualAndrei Karas37-439/+507
Added -Wcast-qual compiler flag
2016-04-02Unittalk script cmd shouldn't display the hidden name of npcAngelmelody1-1/+5
Signed-off-by: Haru <haru@dotalux.com>
2016-03-25Fixed a call to clif->item_drop_announce with a NULL sd.Haru1-1/+3
Closes #1220 Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Dropped typedef from DBMapHaru18-57/+61
Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Dropped typedef from DBIteratorHaru12-85/+92
Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Dropped typedefs from union DBKey and struct DBDataHaru28-96/+116
Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Changed buffer argument of SQL->StmtBindParam() to constHaru1-8/+8
Parameters are supposed to be read-only Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Removed unnecessary typedefs from sql.hHaru9-17/+26
- Sql -> struct Sql - SqlStmt -> struct SqlStmt - SqlDataType -> enum SqlDataType This is expected to improve compile time, by removing #include cycles (and forward declaring instead) Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Added const qualifier to the value argument of script->setd_subHaru3-6/+6
Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Added separate char* and const char* data types to struct script_dataHaru3-92/+116
Used, respectively, by C_STR and C_CONSTSTR Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Changed script->get_val to return a const pointerHaru2-15/+18
Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Added const qualifier to some typecastsHaru5-63/+64
Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Merge pull request #1080 from Jedzkie/Skill_FixesDastgir1-5/+15
Fixes #1014 - Corrects the Behavior of Tension Relax
2016-03-19Enable use of specialeffect 74,SELF,<npc>;Victor1-12/+14
Partly based on #1134 Closes #1134 as merged Signed-off-by: Haru <haru@dotalux.com>
2016-03-19Updated Entity PacketsDastgir2-0/+6