* Change scripting engine's NPC scope vars to dot (.) style.

* Improved and (should be fully) fixed the mob control engine. 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6769 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Lance
2006-05-26 07:21:48 +00:00
parent 11f49682aa
commit e43f38bb0d
8 changed files with 94 additions and 80 deletions

View File

@@ -2774,9 +2774,10 @@ int parse_frommap(int fd) {
return 0;
}
if(pos) // If the player's already in the list, remove the entry and shift the following ones 1 step up
if(pos){ // If the player's already in the list, remove the entry and shift the following ones 1 step up
memmove(list + pos - 1, list + pos, (size - pos) * sizeof(struct fame_list));
list[size].fame = 0; // At worst, the guy'll end up last (shouldn't happen if fame only goes up)
}
for(i = 0; i < size; i++) // Find the position where the player has to be inserted
if(fame >= list[i].fame) { // When found someone with less or as much fame, insert just above