Skip to content

Commit

Permalink
remove remnants of old, curse-based firewall
Browse files Browse the repository at this point in the history
  • Loading branch information
ennorehling committed Feb 3, 2025
1 parent c02fb38 commit f564d5c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
2 changes: 0 additions & 2 deletions src/spells.c
Original file line number Diff line number Diff line change
Expand Up @@ -6376,8 +6376,6 @@ void register_spells(void)

at_deprecate("zauber_todeswolke", dc_read_compat);

/* init_firewall(); */
ct_register(&ct_firewall);
ct_register(&ct_deathcloud);

register_spelldata();
Expand Down
24 changes: 0 additions & 24 deletions src/spells/borders.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
#include <assert.h>
#include <stdlib.h>

typedef struct wallcurse {
curse *buddy;
connection *wall;
} wallcurse;

static int cw_read_depr(variant *var, void *target, gamedata *data)
{
storage *store = data->store;
Expand Down Expand Up @@ -57,25 +52,6 @@ static int cw_read_depr(variant *var, void *target, gamedata *data)
* Was fuer eine Wirkung hat die?
*/

static void wall_vigour(curse * c, double delta)
{
wallcurse *wc = (wallcurse *)c->data.v;
assert(wc->buddy->vigour == c->vigour);
wc->buddy->vigour += delta;
if (wc->buddy->vigour <= 0) {
erase_border(wc->wall);
wc->wall = NULL;
((wallcurse *)wc->buddy->data.v)->wall = NULL;
}
}

const curse_type ct_firewall = {
"Feuerwand",
CURSETYP_NORM, 0, (M_DURATION | M_VIGOUR | NO_MERGE),
NULL, /* curseinfo */
wall_vigour /* change_vigour */
};

static void wall_init(connection * b)
{
wall_data *fd = (wall_data *)calloc(1, sizeof(wall_data));
Expand Down

0 comments on commit f564d5c

Please sign in to comment.