Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 23, 2008, 10:40:38 PM (16 years ago)
Author:
rgrieder
Message:

merged revisions 2260 - 2508 from trunk to buggy.
I'm sorry that I have to commit every merge. But otherwise I get tons of conflicts I have to solve ten times over.
Note: did not merge deletion of src/util/testing, tortoise wasn't very friendly with that.

Location:
code/branches/bugger
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/bugger

  • code/branches/bugger/src/core/LuaBind.cc

    r2344 r2530  
    8787    }
    8888
    89     char line[1024];
     89    char line[1024*32];
    9090    std::string levelString = "";
    9191
    9292    while (file.good() && !file.eof())
    9393    {
    94       file.getline(line, 1024);
     94      file.getline(line, 1024*32);
    9595      levelString += line;
    9696      levelString += "\n";
     
    100100    //std::string output;
    101101
    102     if (luaTags) luaSource_ = replaceLuaTags(levelString);
     102    if (luaTags)
     103      luaSource_ = replaceLuaTags(levelString);
     104    else
     105      luaSource_ = levelString;
    103106    COUT(5) << "ParsedSourceCode: " << luaSource_ << std::endl;
    104107  }
     
    126129      isRunning_ = true;
    127130      int error = 0;
    128       std::string init = "local scr = orxonox.LuaBind:getInstance()\nlocal debug = print\nprint = function(s)\nscr:luaPrint(s)\nend\ninclude = function(f)\nfile = assert(io.open(\"" + this->includePath_ + "\"..\"/\"..f))\ncontent = file:read(\"*a\")\nfile:close()\nsource = scr:replaceLuaTags(content)\nassert(loadstring(source))()\nend\n";
     131      std::string init =
     132         "local scr = orxonox.LuaBind:getInstance()\n \
     133          local debug = print\n \
     134          print = function(s)\n \
     135              scr:luaPrint(s)\n \
     136          end\n \
     137          include = function(f)\n \
     138              file = assert(io.open(\"" + this->includePath_ + "\"..\"/\"..f))\n \
     139              content = file:read(\"*a\")\n \
     140              file:close()\n \
     141              source = scr:replaceLuaTags(content)\n \
     142              assert(loadstring(source))()\n \
     143          end\n";
    129144      init += luaSource_;
    130145  #if LUA_VERSION_NUM == 501
  • code/branches/bugger/src/core/Template.cc

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • code/branches/bugger/src/core/Template.h

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • code/branches/bugger/src/core/XMLFile.h

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • code/branches/bugger/src/core/XMLIncludes.h

    • Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset for help on using the changeset viewer.