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.47 by elmex, Sun Apr 9 18:28:23 2006 UTC vs.
Revision 1.48 by elmex, Sun Apr 9 18:30:03 2006 UTC

289 my ($ent) = @_; 289 my ($ent) = @_;
290 $cfg->{$key} = $ent->get_text; 290 $cfg->{$key} = $ent->get_text;
291 if ($key eq 'mapsize' and $cfg->{$key} > 100) { 291 if ($key eq 'mapsize' and $cfg->{$key} > 100) {
292 $cfg->{$key} = 100; 292 $cfg->{$key} = 100;
293 $ent->set_text ('100'); 293 $ent->set_text ('100');
294 } elsif ($key eq 'mapsize' and $cfg->{$key} < 0) { 294 } elsif ($key eq 'mapsize' and $cfg->{$key} < 50) {
295 $cfg->{$key} = 0; 295 $cfg->{$key} = 50;
296 $ent->set_text ('0'); 296 $ent->set_text ('50');
297 } 297 }
298 }); 298 });
299} 299}
300 300
301sub run_config_dialog { 301sub run_config_dialog {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines