rewrote some nade code, "prompt" context, typos fixed

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1915 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-05-10 18:43:23 +00:00
parent ba17c01eee
commit d315890fd5
8 changed files with 77 additions and 55 deletions
+1 -1
View File
@@ -828,9 +828,9 @@ playerent *findfollowplayer(int shiftdirection)
playerent *f = players.inrange(player1->followplayercn) ? players[player1->followplayercn] : NULL;
if(f) return f;
}
vector<playerent *> available;
loopv(players) if(players[i]) available.add(players[i]);
if(!available.length()) return NULL;
player1->followplayercn = (player1->followplayercn+shiftdirection) % available.length();
return players[player1->followplayercn];
}