no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@770 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-12-07 22:03:14 +00:00
parent 4ff1771979
commit 3e2efca5b7
9 changed files with 16 additions and 7 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+5 -2
View File
@@ -254,7 +254,9 @@ public:
return Entry; return Entry;
} }
node_s *GetFirst(void) { return pNodeList; }; node_s *GetFirst(void) {
return pNodeList;
};
node_s *GetLast(void) { return pLastNode; }; node_s *GetLast(void) { return pLastNode; };
void EditEntry(C OrigEntry, C NewVal) void EditEntry(C OrigEntry, C NewVal)
@@ -287,7 +289,8 @@ public:
DeleteAllNodes(); DeleteAllNodes();
}; };
private: //fixmebot
//private:
node_s *pNodeList; node_s *pNodeList;
node_s *pLastNode; node_s *pLastNode;
int iNodeCount; int iNodeCount;
+7 -1
View File
@@ -79,6 +79,9 @@ void CWaypointClass::Clear()
} }
} }
//fixme
TLinkedList<node_s *>::node_s *testx;
// returns true if waypoints succesfull loaded // returns true if waypoints succesfull loaded
bool CWaypointClass::LoadWaypoints() bool CWaypointClass::LoadWaypoints()
{ {
@@ -197,7 +200,7 @@ bool CWaypointClass::LoadWaypoints()
(triggernr < BotManager.m_sCurrentTriggerNr)) (triggernr < BotManager.m_sCurrentTriggerNr))
BotManager.m_sCurrentTriggerNr = triggernr; BotManager.m_sCurrentTriggerNr = triggernr;
} }
for (i=0; i < header.iWPCount; i++) for (i=0; i < header.iWPCount; i++)
{ {
// read the number of paths from this node... // read the number of paths from this node...
@@ -272,6 +275,9 @@ bool CWaypointClass::LoadWaypoints()
ReCalcCosts(); ReCalcCosts();
conoutf("Waypoints for map %s loaded", (m_szMapName)); conoutf("Waypoints for map %s loaded", (m_szMapName));
testx = m_Waypoints[1][1].pNodeList;
return true; return true;
} }
+1 -1
View File
@@ -46,7 +46,7 @@ void CBotManager::Init()
CreateSkillData(); CreateSkillData();
LoadBotNamesFile(); LoadBotNamesFile();
LoadBotTeamsFile(); LoadBotTeamsFile();
WaypointClass.Init(); //WaypointClass.Init();
lsrand(time(NULL)); lsrand(time(NULL));
} }
+2 -1
View File
@@ -106,7 +106,8 @@ void equipitem(playerent *d, int i, int &v, int t)
ents[i].spawned = false; ents[i].spawned = false;
v += is.add; v += is.add;
if(v>is.max) v = is.max; if(v>is.max) v = is.max;
playsound(is.sound, &d->o); if(d==player1) playsoundc(is.sound);
else playsound(is.sound, &d->o);
}; };
void realpickup(int n, playerent *d) void realpickup(int n, playerent *d)
+1 -2
View File
@@ -304,5 +304,4 @@ extern void equip(playerent *d);
extern bool intersect(entity *e, vec &from, vec &to, vec *end=NULL); extern bool intersect(entity *e, vec &from, vec &to, vec *end=NULL);
// rndmap // rndmap
extern void perlinarea(block &b, int scale, int seed, int psize); extern void perlinarea(block &b, int scale, int seed, int psize);