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

Comparing deliantra/Deliantra-Client/DC.pm (file contents):
Revision 1.77 by root, Mon May 29 21:54:15 2006 UTC vs.
Revision 1.79 by root, Tue May 30 02:55:45 2006 UTC

86 -Cachesize => 1_000_000, 86 -Cachesize => 1_000_000,
87 -ErrFile => "$Crossfire::VARDIR/cfplus/errorlog.txt", 87 -ErrFile => "$Crossfire::VARDIR/cfplus/errorlog.txt",
88# -ErrPrefix => "DATABASE", 88# -ErrPrefix => "DATABASE",
89 -Verbose => 1, 89 -Verbose => 1,
90 -Flags => DB_CREATE | DB_RECOVER | DB_INIT_MPOOL | DB_INIT_LOCK | DB_INIT_TXN | $recover, 90 -Flags => DB_CREATE | DB_RECOVER | DB_INIT_MPOOL | DB_INIT_LOCK | DB_INIT_TXN | $recover,
91 -SetFlags => DB_AUTO_COMMIT | DB_LOG_AUTOREMOVE | DB_TXN_WRITE_NOSYNC, 91 -SetFlags => DB_AUTO_COMMIT | DB_LOG_AUTOREMOVE,
92 or die "unable to create/open database home $Crossfire::VARDIR/cfplus: $BerkeleyDB::Error"; 92 or die "unable to create/open database home $Crossfire::VARDIR/cfplus: $BerkeleyDB::Error";
93} 93}
94 94
95sub db_table($) { 95sub db_table($) {
96 my ($table) = @_; 96 my ($table) = @_;
251 251
252 if ($self->{container} == $::CONN->{player}{tag}) { 252 if ($self->{container} == $::CONN->{player}{tag}) {
253 $targ = $::CONN->{open_container}; 253 $targ = $::CONN->{open_container};
254 } 254 }
255 255
256 $::CONN->send ("move $targ $self->{tag} 0"); 256 $::CONN->send ("move $targ $self->{tag} 0")
257 if $targ || !($self->{flags} & F_LOCKED);
257 } elsif ($ev->{button} == 1) { 258 } elsif ($ev->{button} == 1) {
258 $::CONN->send ("examine $self->{tag}"); 259 $::CONN->send ("examine $self->{tag}");
259 } elsif ($ev->{button} == 2) { 260 } elsif ($ev->{button} == 2) {
260 $::CONN->send ("apply $self->{tag}"); 261 $::CONN->send ("apply $self->{tag}");
261 } elsif ($ev->{button} == 3) { 262 } elsif ($ev->{button} == 3) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines