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.294 by root, Tue Jul 3 06:00:48 2007 UTC vs.
Revision 1.296 by root, Wed Jul 4 07:09:06 2007 UTC

1412 1412
1413 # create single paragraphs (very hackish) 1413 # create single paragraphs (very hackish)
1414 s/(?<=\S)\n(?=\w)/ /g; 1414 s/(?<=\S)\n(?=\w)/ /g;
1415 1415
1416 # compress some whitespace 1416 # compress some whitespace
1417 1 while s/\s*\n\s*\n\s*/\n/; 1417 s/\s+\n/\n/g; # ws line-ends
1418 1418 s/\n\n+/\n/g; # double lines
1419 s/^\s+//; 1419 s/^\n+//; # beginning lines
1420 s/\s+$//; 1420 s/\n+$//; # ending lines
1421 1421
1422 $_ 1422 $_
1423} 1423}
1424 1424
1425sub hintmode { 1425sub hintmode {
2357 my $hp = $exit->stats->hp; 2357 my $hp = $exit->stats->hp;
2358 my $sp = $exit->stats->sp; 2358 my $sp = $exit->stats->sp;
2359 2359
2360 $self->enter_link; 2360 $self->enter_link;
2361 2361
2362 # if exit is damned, update players death & WoR home-position
2363 $self->contr->savebed ($slaying, $hp, $sp)
2364 if $exit->flag (FLAG_DAMNED);
2365
2362 (async { 2366 (async {
2363 $self->deactivate_recursive; # just to be sure 2367 $self->deactivate_recursive; # just to be sure
2364 unless (eval { 2368 unless (eval {
2365 $self->goto ($slaying, $hp, $sp); 2369 $self->goto ($slaying, $hp, $sp);
2366 2370

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines