~ubuntu-branches/ubuntu/precise/simutrans/precise

« back to all changes in this revision

Viewing changes to besch/writer/root_writer.cc

  • Committer: Package Import Robot
  • Author(s): Ansgar Burchardt
  • Date: 2011-11-03 19:59:02 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20111103195902-uopgwf488mfctb75
Tags: 111.0-1
* New upstream release.
* debian/rules: Update get-orig-source target for new upstream release.
* Use xz compression for source and binary packages.
* Use override_* targets to simplify debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
381
381
                        else if(  writer=="bridge"  ) {
382
382
                                size_t pos=ftell(infp);
383
383
                                node_name = name_from_next_node(infp);
384
 
                                if(  node_name.size()==0  ) {
 
384
                                if (node_name.empty()) {
385
385
                                        fseek( infp, pos, SEEK_SET );
386
386
                                        // we need to take name from thrid children, the cursor node ...
387
387
                                        obj_node_info_t node;
402
402
                        }
403
403
                        // use a clever default name, if no name there
404
404
                        // note: this doesn't work because node_name.size() is not 0 even if invalid file characters are contained. (z9999)
405
 
                        if(  node_name.size() == 0  ) {
 
405
                        if (node_name.empty()) {
406
406
                                char random_name[16];
407
407
                                // we use the file position as unique name
408
408
                                sprintf( random_name, "p%li", ftell(infp) );