dmitrysenkovich

Untitled

Sep 3rd, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Index: buildAirfield.cpp
  2. ===================================================================
  3. --- buildAirfield.cpp   (revision 6383)
  4. +++ buildAirfield.cpp   (working copy)
  5. @@ -32,7 +32,10 @@
  6.         throw "Invalid argument count";
  7.  
  8.     std::string name = args[0];
  9. -   std::string luaFileName = args[1];
  10. +   int lastNamePart = 1;
  11. +   for ( ; (lastNamePart < args.size()) && (args[lastNamePart][1] != ':'); lastNamePart++)
  12. +       name += args[lastNamePart];
  13. +   std::string luaFileName = args[lastNamePart];
  14.     std::string taxiwaysFileName;
  15.     args.getOptionalString("-in-taxiways", taxiwaysFileName);
  16.     std::string taxiwaysFileNameOut;
Advertisement
Add Comment
Please, Sign In to add comment