--- deliantra/Deliantra-Client/DC/Protocol.pm 2007/07/28 00:45:28 1.137 +++ deliantra/Deliantra-Client/DC/Protocol.pm 2007/07/28 16:48:45 1.138 @@ -64,7 +64,7 @@ $self->send_exti_msg (fx_want => { 3 => !!$::CFG->{bgm_enable}, # FT_MUSIC - 5 => !!$::CFG->{audio_enable}, # FT_SOUND + #5 => !!$::CFG->{audio_enable}, # FT_SOUND }); if (my $ts = $cap{tileset}) { @@ -764,9 +764,10 @@ }; } + my $path = CFPlus::DB::path_of_res $face->{name}; + if ($changed) { # new data my ($meta_json, $data) = unpack "(w/a*)*", delete $face->{data}; - my $path = CFPlus::DB::path_of_res $face->{name}; CFPlus::DB::write_file $path, $data, sub { CFPlus::DB::put "res-metadata" => $face->{name} => $meta_json, sub { @@ -778,6 +779,7 @@ }; } else { $face->{meta} = $self->{json_coder}->decode (delete $face->{data}); + $face->{path} = $path; $cb->(); } } @@ -895,7 +897,7 @@ $self->logprint ("msg: ", $text); return if $color < 0; # negative color == ignore if not understood - my $fg = $CF_COLOR[$color % @CF_COLOR]; + my $fg = $CF_COLOR[$color & 0x1f] || [1, 0, 0]; ## try to create single paragraphs of multiple lines sent by the server # no longer neecssary with TRT servers