summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-09 20:49:09 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-09 20:49:09 +0000
commit25892a33371561def57c1b554165b0a8220e9114 (patch)
treed032fa7cff1f80b5439e7d8f7340f190c77823de
parenta37549d260bb341f567dd99f6daf5cb06836c149 (diff)
downloadhercules-25892a33371561def57c1b554165b0a8220e9114.tar.gz
hercules-25892a33371561def57c1b554165b0a8220e9114.tar.bz2
hercules-25892a33371561def57c1b554165b0a8220e9114.tar.xz
hercules-25892a33371561def57c1b554165b0a8220e9114.zip
Dropped a incredibly wasteful and pointless (why was that there i wonder) 3100byte => ~3kb memory waste PER active elemental unit in the server
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16894 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/elemental.c5
-rw-r--r--src/map/elemental.h1
2 files changed, 1 insertions, 5 deletions
diff --git a/src/map/elemental.c b/src/map/elemental.c
index 1157e851e..770047138 100644
--- a/src/map/elemental.c
+++ b/src/map/elemental.c
@@ -484,10 +484,7 @@ int elemental_skillnotok(int skillid, struct elemental_data *ed) {
if (i == 0)
return 1; // invalid skill id
-
- if( ed->blockskill[i] > 0 )
- return 1;
-
+
return skillnotok(skillid, ed->master);
}
diff --git a/src/map/elemental.h b/src/map/elemental.h
index 698cf6fb9..1f99bcba9 100644
--- a/src/map/elemental.h
+++ b/src/map/elemental.h
@@ -46,7 +46,6 @@ struct elemental_data {
struct s_elemental_db *db;
struct s_elemental elemental;
- char blockskill[MAX_SKILL];
struct map_session_data *master;
int summon_timer;