From: Luca P. <lpa...@us...> - 2005-07-31 16:47:13
|
Update of /cvsroot/planeshift/planeshift/src/npcclient In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8899/npcclient Modified Files: npc.cpp npcbehave.cpp Log Message: prints also ID of NPC Index: npc.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/npcclient/npc.cpp,v retrieving revision 1.61 retrieving revision 1.62 diff -C2 -d -r1.61 -r1.62 *** npc.cpp 28 Jul 2005 02:26:07 -0000 1.61 --- npc.cpp 31 Jul 2005 16:47:05 -0000 1.62 *************** *** 203,207 **** if (is_debugging || force) { ! CPrintf(CON_CMDOUTPUT, "\nBehaviors for %s\n----------------------------------------\n",name.GetData() ); brain->DumpBehaviorList(); --- 203,207 ---- if (is_debugging || force) { ! CPrintf(CON_CMDOUTPUT, "\nBehaviors for %s (%d)\n----------------------------------------\n",name.GetData(),id ); brain->DumpBehaviorList(); *************** *** 266,270 **** va_end(args); ! CPrintf(CON_CMDOUTPUT, "%s> %s\n",entity->GetName(),str); } --- 266,270 ---- va_end(args); ! CPrintf(CON_CMDOUTPUT, "%s (%d)> %s\n",entity->GetName(),id,str); } Index: npcbehave.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/npcclient/npcbehave.cpp,v retrieving revision 1.92 retrieving revision 1.93 diff -C2 -d -r1.92 -r1.93 *** npcbehave.cpp 6 Jul 2005 21:19:15 -0000 1.92 --- npcbehave.cpp 31 Jul 2005 16:47:05 -0000 1.93 *************** *** 1223,1227 **** if(dist < 0) { ! printf("Turning left!\n"); turn = left; break; --- 1223,1227 ---- if(dist < 0) { ! npc->Printf("Turning left!\n"); turn = left; break; *************** *** 1234,1238 **** if(dist < 0) { ! printf("Turning right!\n"); turn = right; break; --- 1234,1238 ---- if(dist < 0) { ! npc->Printf("Turning right!\n"); turn = right; break; |