summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-24 15:00:26 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-24 15:00:26 +0000
commit6612269d2706ca08d9b174f292671a024724e6a3 (patch)
tree694f379048fa39552cc14963ac40c310c8ce9727 /src/map/atcommand.c
parent8cb6244382cb6e1bb8b2edd13bba6b91f9c67b1f (diff)
downloadhercules-6612269d2706ca08d9b174f292671a024724e6a3.tar.gz
hercules-6612269d2706ca08d9b174f292671a024724e6a3.tar.bz2
hercules-6612269d2706ca08d9b174f292671a024724e6a3.tar.xz
hercules-6612269d2706ca08d9b174f292671a024724e6a3.zip
- Moving all content of Homunculus code to a proper file Homunculus.c/h
- Update of all project files. NOTE: All functions on homunculus.c should be renamed i think, to remove all the merc_*. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13122 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 9865f4203..965199331 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -27,6 +27,7 @@
#include "mob.h"
#include "npc.h"
#include "pet.h"
+#include "homunculus.h"
#include "mercenary.h"
#include "party.h"
#include "guild.h"
@@ -6592,15 +6593,15 @@ int atcommand_adjcmdlvl(const int fd, struct map_session_data* sd, const char* c
*------------------------------------------*/
int atcommand_adjgmlvl(const int fd, struct map_session_data* sd, const char* command, const char* message)
{
- int newlev;
- char user[NAME_LENGTH];
- struct map_session_data *pl_sd;
+ int newlev;
+ char user[NAME_LENGTH];
+ struct map_session_data *pl_sd;
nullpo_retr(-1, sd);
- if (!message || !*message || sscanf(message, "%d %23[^\r\n]", &newlev, user) != 2) {
- clif_displaymessage(fd, "Usage: @adjgmlvl <lvl> <user>.");
- return -1;
- }
+ if (!message || !*message || sscanf(message, "%d %23[^\r\n]", &newlev, user) != 2) {
+ clif_displaymessage(fd, "Usage: @adjgmlvl <lvl> <user>.");
+ return -1;
+ }
if ( (pl_sd = map_nick2sd(user)) == NULL )
{