Explorar o código

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://svn.code.sf.net/p/rathena/svn/trunk@16894 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind %!s(int64=12) %!d(string=hai) anos
pai
achega
cfd04271c2
Modificáronse 2 ficheiros con 1 adicións e 5 borrados
  1. 1 4
      src/map/elemental.c
  2. 0 1
      src/map/elemental.h

+ 1 - 4
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);
 }
 

+ 0 - 1
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;