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.24 by root, Thu Feb 23 03:13:33 2006 UTC vs.
Revision 1.25 by root, Thu Feb 23 03:14:26 2006 UTC

25our $LIB = $ENV{CROSSFIRE_LIBDIR} 25our $LIB = $ENV{CROSSFIRE_LIBDIR}
26 or Carp::croak "\$CROSSFIRE_LIBDIR must be set\n"; 26 or Carp::croak "\$CROSSFIRE_LIBDIR must be set\n";
27 27
28sub TILESIZE (){ 32 } 28sub TILESIZE (){ 32 }
29 29
30our $CACHEDIR; 30our $VARDIR;
31our %ARCH; 31our %ARCH;
32our %FACE; 32our %FACE;
33our $TILE; 33our $TILE;
34 34
35our %FIELD_MULTILINE = ( 35our %FIELD_MULTILINE = (
381 381
382 mkdir $cachedir, 0777; 382 mkdir $cachedir, 0777;
383 *ARCH = read_arch "$LIB/archetypes", "$cachedir/archetypes.pst"; 383 *ARCH = read_arch "$LIB/archetypes", "$cachedir/archetypes.pst";
384} 384}
385 385
386$CACHEDIR ||= $ENV{HOME} ? "$ENV{HOME}/crossfire" : File::Spec->tmpdir; 386$VARDIR ||= $ENV{HOME} ? "$ENV{HOME}/crossfire" : File::Spec->tmpdir;
387 387
388init $CACHEDIR; 388init $VARDIR;
389 389
390=head1 AUTHOR 390=head1 AUTHOR
391 391
392 Marc Lehmann <schmorp@schmorp.de> 392 Marc Lehmann <schmorp@schmorp.de>
393 http://home.schmorp.de/ 393 http://home.schmorp.de/

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines