ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.347 by root, Thu Aug 30 05:16:09 2007 UTC vs.
Revision 1.348 by root, Thu Aug 30 08:34:40 2007 UTC

2836# the server's init and main functions 2836# the server's init and main functions
2837 2837
2838sub load_facedata($) { 2838sub load_facedata($) {
2839 my ($path) = @_; 2839 my ($path) = @_;
2840 2840
2841 # HACK to clear player env face cache, we need some signal framework
2842 # for this (global event?)
2843 %ext::player_env::MUSIC_FACE_CACHE = ();
2844
2841 my $enc = JSON::XS->new->utf8->canonical->relaxed; 2845 my $enc = JSON::XS->new->utf8->canonical->relaxed;
2842 2846
2843 warn "loading facedata from $path\n"; 2847 warn "loading facedata from $path\n";
2844 2848
2845 my $facedata; 2849 my $facedata;
2956 $ns->fx_want ($k, $v); 2960 $ns->fx_want ($k, $v);
2957 } 2961 }
2958}; 2962};
2959 2963
2960sub reload_regions { 2964sub reload_regions {
2965 # HACK to clear player env face cache, we need some signal framework
2966 # for this (global event?)
2967 %ext::player_env::MUSIC_FACE_CACHE = ();
2968
2961 load_resource_file "$MAPDIR/regions" 2969 load_resource_file "$MAPDIR/regions"
2962 or die "unable to load regions file\n"; 2970 or die "unable to load regions file\n";
2963 2971
2964 for (cf::region::list) { 2972 for (cf::region::list) {
2965 $_->{match} = qr/$_->{match}/ 2973 $_->{match} = qr/$_->{match}/

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines