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

Comparing deliantra/Deliantra-Client/bin/pclient (file contents):
Revision 1.203 by root, Mon May 8 20:55:49 2006 UTC vs.
Revision 1.204 by root, Mon May 8 21:16:10 2006 UTC

1369 1369
1370 $FLOORBOX->clear; 1370 $FLOORBOX->clear;
1371 $FLOORBOX->add (new CFClient::UI::Empty expand => 1); 1371 $FLOORBOX->add (new CFClient::UI::Empty expand => 1);
1372 1372
1373 # we basically have to use the same sorting as everybody else 1373 # we basically have to use the same sorting as everybody else
1374 for my $item (@{ $CONN->{container}{0} }) { 1374 $FLOORBOX->add (
1375 $FLOORBOX->add (new CFClient::UI::InventoryItem item => $item); 1375 map +(new CFClient::UI::InventoryItem item => $_),
1376 @{ $CONN->{container}{0} }
1376 } 1377 );
1377 }); 1378 });
1378 refresh; 1379 refresh;
1379} 1380}
1380 1381
1381sub conn::container_add { 1382sub conn::container_add {
1416 my ($self, $item) = @_; 1417 my ($self, $item) = @_;
1417 1418
1418 update_floorbox if $item->{container} == 0; 1419 update_floorbox if $item->{container} == 0;
1419 1420
1420 $INV->set_items ($self->{container}{$item->{container}}) 1421 $INV->set_items ($self->{container}{$item->{container}})
1421 if $item->{container}; == $self->{player}{tag}; 1422 if $item->{container} == $self->{player}{tag};
1422} 1423}
1423 1424
1424%SDL_CB = ( 1425%SDL_CB = (
1425 CFClient::SDL_QUIT => sub { 1426 CFClient::SDL_QUIT => sub {
1426 Event::unloop -1; 1427 Event::unloop -1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines