summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-03-04 17:26:07 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-03-04 17:26:07 +0000
commit134bf364c8deffa192fb77a323b92b708a2e2276 (patch)
tree606cb191f9a0d4a3897866a0c8086fed6a3b7333 /src/map/pc.c
parent23d9eff296a39897242648b4e5f89aaa14f945ea (diff)
downloadhercules-134bf364c8deffa192fb77a323b92b708a2e2276.tar.gz
hercules-134bf364c8deffa192fb77a323b92b708a2e2276.tar.bz2
hercules-134bf364c8deffa192fb77a323b92b708a2e2276.tar.xz
hercules-134bf364c8deffa192fb77a323b92b708a2e2276.zip
Small edits to battleground code (bugreport:2816)
- removed bg_idle_announce setting (could be considered later) - moved crystal protection code to battle_calc_bg_damage - removed mob state 'inmunity' in favor of a script-based solution - removed unneeded 'setmobdata' (fixes collision with mob controller) - added svn:eol-style native for battleground code git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13565 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 8fbacb71d..4fab50112 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -82,28 +82,6 @@ int pc_class2idx(int class_) {
return class_;
}
-void pc_update_last_action(struct map_session_data *sd)
-{
- struct battleground_data *bg;
- int i;
-
- sd->idletime = last_tick;
- if( sd->state.bg_id && (bg = bg_team_search(sd->state.bg_id)) != NULL )
- { // Update Battleground Idle Timer
- ARR_FIND(0, MAX_BG_MEMBERS, i, bg->members[i].sd == sd);
- if( i == MAX_BG_MEMBERS)
- return;
-
- if( bg->members[i].afk && bg->g )
- {
- char output[128];
- sprintf(output, "%s : %s is no longer away...", bg->g->name, sd->status.name);
- clif_bg_message(bg, 0, output, strlen(output));
- bg->members[i].afk = 0;
- }
- }
-}
-
int pc_isGM(struct map_session_data* sd)
{
return sd->gmlevel;