ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/map-per-player.ext
(Generate patch)

Comparing deliantra/server/ext/map-per-player.ext (file contents):
Revision 1.9 by root, Thu Apr 19 11:12:45 2007 UTC vs.
Revision 1.10 by root, Thu Jun 7 19:12:22 2007 UTC

5sub init { 5sub init {
6 my ($self) = @_; 6 my ($self) = @_;
7 7
8 $self->{user} = $1; 8 $self->{user} = $1;
9 $self->{orig_path} = $2; 9 $self->{orig_path} = $2;
10 $self->{deny_reset} = 1; #d# for now
11} 10}
12 11
13sub thawer_merge { 12sub thawer_merge {
14 # we have to keep some variables in memory intact 13 # we have to keep some variables in memory intact
15 local $_[0]{user}; 14 local $_[0]{user};
16 local $_[0]{orig_path}; 15 local $_[0]{orig_path};
17 local $_[0]{deny_reset};
18 16
19 $_[0]->SUPER::thawer_merge ($_[1]); 17 $_[0]->SUPER::thawer_merge ($_[1]);
20} 18}
21 19
22sub load_path { 20sub load_path {
46 $self->per_player (0); 44 $self->per_player (0);
47 45
48 1 46 1
49} 47}
50 48
51sub decay_objects {
52 # do nothing on per player maps at the moment
53 # to protect apartments.
54 # TODO: apartments should be marked as such
55 # (no reset, no decay etc.)
56}
57
581 491
59 50

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines