From 20fadf45adddb27cf7e4db736614b67f7f8561f6 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 10 Apr 2006 14:26:52 +0000 Subject: - Updated the subnet support to not require specifying the subnet mask, it is auto-acquired from the char/map IP and the subnet-mask. - skill_wall_check defaults to yes now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5976 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 4 ++++ conf-tmpl/battle/skill.conf | 3 +-- conf-tmpl/subnet_athena.conf | 6 +++--- src/char/char.c | 21 ++++++++++++--------- src/char_sql/char.c | 2 +- src/login/login.c | 23 +++++++++++++---------- src/login_sql/login.c | 21 ++++++++++++--------- src/map/map.c | 2 +- 8 files changed, 47 insertions(+), 35 deletions(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 71e0fe227..53315aa8e 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,10 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +2006/04/10 + - Updated the subnet support to not require specifying the subnet mask, it + is auto-acquired from the char/map IP and the subnet-mask. [Skotlex] + - skill_wall_check defaults to yes now. [Skotlex] 2006/04/09 * Added the missing last_thinktime initialization to pets. [Skotlex] * Reverted the change in skill_wall_check to let skills go over pits. diff --git a/conf-tmpl/battle/skill.conf b/conf-tmpl/battle/skill.conf index 4f80bbf04..55d92509b 100644 --- a/conf-tmpl/battle/skill.conf +++ b/conf-tmpl/battle/skill.conf @@ -115,8 +115,7 @@ gvg_traps_target_all: 1 // Whether placed down skills will check walls (Note 1) // (Makes it so that Storm Gust/Lord of Vermillion/etc when casted next to a wall, won't hit on the other side) -// NOTE: It may degrade performance to enable this. -skill_wall_check: no +skill_wall_check: yes // When a player is cloaking, Whether the wall is checked or not. (Note 1) // Note: When set to no players can always cloak away from walls and move around diff --git a/conf-tmpl/subnet_athena.conf b/conf-tmpl/subnet_athena.conf index 39855d991..5308ffbda 100644 --- a/conf-tmpl/subnet_athena.conf +++ b/conf-tmpl/subnet_athena.conf @@ -1,6 +1,6 @@ // Subnet support file // Format is: -// subnet: subnet/mask:char_ip:map_ip -// you can add more than one that line +// subnet: net-submask:char_ip:map_ip +// you can add more than one subnet -subnet: 127.0.0.1/255.255.255.0:127.0.0.1:127.0.0.1 +subnet: 255.0.0.0:127.0.0.1:127.0.0.1 diff --git a/src/char/char.c b/src/char/char.c index 8afd7c5af..3ca461610 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -3051,7 +3051,7 @@ int lan_subnetcheck(long *p) { for(i=0; i