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

Comparing deliantra/Deliantra/Deliantra.pm (file contents):
Revision 1.19 by root, Wed Feb 22 23:02:59 2006 UTC vs.
Revision 1.21 by root, Thu Feb 23 01:55:29 2006 UTC

12 12
13use base 'Exporter'; 13use base 'Exporter';
14 14
15use Carp (); 15use Carp ();
16use Storable; 16use Storable;
17use File::Spec;
17use List::Util qw(min max); 18use List::Util qw(min max);
18 19
19#XXX: The map_* procedures scream for a map-object 20#XXX: The map_* procedures scream for a map-object
20 21
21our @EXPORT = 22our @EXPORT =
313 314
314 $attr = $_; 315 $attr = $_;
315 } 316 }
316 } 317 }
317 318
318 use PApp::Util;
319 warn PApp::Util::dumpval $attr;
320
321 $attr || \%Crossfire::Data::DEFAULT_ATTR; 319 $attr || \%Crossfire::Data::DEFAULT_ATTR;
322} 320}
323 321
324sub arch_edit_sections { 322sub arch_edit_sections {
325# if (edit_type == IGUIConstants.TILE_EDIT_NONE) 323# if (edit_type == IGUIConstants.TILE_EDIT_NONE)
380# return(edit_type); 378# return(edit_type);
381# 379#
382# 380#
383} 381}
384 382
385$CACHEDIR ||= "$ENV{HOME}/.crossfire"; 383$CACHEDIR ||= $ENV{HOME} ? "$ENV{HOME}/.crossfire" : File::Spec->tmpdir;
386 384
387init $CACHEDIR; 385init $CACHEDIR;
388 386
389=head1 AUTHOR 387=head1 AUTHOR
390 388

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines