- Timestamp:
- May 27, 2008, 4:30:15 AM (16 years ago)
- Location:
- code/branches/console/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/audio/AudioStream.cc
r1064 r1438 117 117 118 118 for(int i = 0; i < vorbisComment->comments; i++) 119 { 119 120 COUT(3) << " " << vorbisComment->user_comments[i] << std::endl; 121 } 120 122 121 123 COUT(3) << std::endl; -
code/branches/console/src/core/Script.cc
r1334 r1438 128 128 if (error == 0) 129 129 error = lua_pcall(luaState_, 0, 0, 0); 130 if (error != 0) COUT(2) << "Error in Lua-script: " << lua_tostring(luaState_, -1) << std::endl; 130 if (error != 0) 131 { 132 COUT(2) << "Error in Lua-script: " << lua_tostring(luaState_, -1) << std::endl; 133 } 131 134 } 132 135 -
code/branches/console/src/core/TclBind.cc
r1416 r1438 110 110 111 111 if (!CommandExecutor::execute(command, false)) 112 { 112 113 COUT(1) << "Error: Can't execute command \"" << command << "\"!" << std::endl; 114 } 113 115 114 116 if (CommandExecutor::getLastEvaluation().hasReturnvalue()) … … 124 126 125 127 if (!CommandExecutor::execute(command, false)) 128 { 126 129 COUT(1) << "Error: Can't execute command \"" << command << "\"!" << std::endl; 130 } 127 131 } 128 132 … … 133 137 std::string output = TclBind::getInstance().interpreter_->eval(tclcode); 134 138 if (output != "") 139 { 135 140 COUT(0) << "tcl> " << output << std::endl; 141 } 136 142 return output; 137 143 } -
code/branches/console/src/network/GameStateClient.cc
r1062 r1438 102 102 // update data and create object/entity... 103 103 if( !no->updateData(sync) && !no->create() ) 104 { 104 105 COUT(1) << "We couldn't create/update the object: " << sync.objectID << std::endl; 106 } 105 107 ++it; 106 108 } … … 108 110 // we have our object 109 111 if(! it->updateData(sync)) 112 { 110 113 COUT(1) << "We couldn't update objectID: " \ 111 114 << sync.objectID << "; classID: " << sync.classID << std::endl; 115 } 112 116 } 113 117 ++it; -
code/branches/console/src/network/PacketDecoder.cc
r1064 r1438 176 176 //since data is not allocated, because it's just a pointer, allocate it with size of gamestatedatastream 177 177 if(currentState->compsize==0) 178 { 178 179 COUT(2) << "compsize is 0" << std::endl; 180 } 179 181 currentState->data = (unsigned char*)(malloc( currentState->compsize )); 180 182 if(currentState->data==NULL) 183 { 181 184 COUT(2) << "Gamestatepacket-decoder: memory leak" << std::endl; 185 } 182 186 //copy the GameStateCompressed data 183 187 //std::cout << "packet size (enet): " << packet->dataLength << std::endl; … … 252 256 { 253 257 if(clientId!=CLIENTID_CLIENT) 258 { 254 259 COUT(5) << "client: " << clientId << std::endl; 260 } 255 261 COUT(5) << "data id: " << data->id << std::endl; 256 262 COUT(5) << "data: " << data->message << std::endl; -
code/branches/console/src/network/dummyclient3.cc
r1062 r1438 51 51 Client client( str, PORT ); 52 52 if ( client.establishConnection() ) 53 { 53 54 COUT(3) << "connection established" << std::endl; 54 else COUT(0) << "problems establishing connection" << std::endl; 55 } 56 else 57 { 58 COUT(0) << "problems establishing connection" << std::endl; 59 } 55 60 char message[10000]; 56 61 char signs[] = "abcdefghijklmnopqrstuvwxy";
Note: See TracChangeset
for help on using the changeset viewer.