Changeset 10251 for code/branches/storymodeHS14/src
- Timestamp:
- Feb 1, 2015, 11:46:42 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/storymodeHS14/src/orxonox/gametypes/Mission.cc
r10249 r10251 28 28 29 29 #include "Mission.h" 30 31 #include <boost/filesystem.hpp> 32 30 33 #include "items/Engine.h" 31 34 #include "controllers/ArtificialController.h" … … 108 111 { 109 112 this->gtinfo_->sendAnnounceMessage("Mission accomplished!"); 113 114 boost::filesystem::path filepath("campaign.txt"); 110 115 std::fstream myfile; 111 myfile.open("/home/maxima/maxima-extra-0/orxonox/storymodeHS14/campaign.txt"); 116 myfile.open(filepath.string().c_str(), std::fstream::out); 117 112 118 std::string line; 113 119 std::string mission = this->getFilename(); … … 126 132 if (line == mission + " 0" + helperstring) 127 133 { 128 long pos = myfile.tellp();134 long pos = (long) myfile.tellp(); 129 135 myfile.seekp(pos - 61); 130 136 myfile << mission + " 1" + helperstring; 131 137 } 132 138 } 139 } else { 140 orxout(internal_warning) << "failed to open campaign file" << endl; 133 141 } 134 142 myfile.flush();
Note: See TracChangeset
for help on using the changeset viewer.