Mercurial > mm7
comparison NPC.cpp @ 1661:e1d1fe32c194
NPCTopics
author | Ritor1 |
---|---|
date | Wed, 18 Sep 2013 14:19:37 +0600 |
parents | d453ed393d6e |
children | 620b6ba3e6b8 |
comparison
equal
deleted
inserted
replaced
1654:d11b5669f089 | 1661:e1d1fe32c194 |
---|---|
288 free(pNPCTopicTXT_Raw); | 288 free(pNPCTopicTXT_Raw); |
289 pNPCTopicTXT_Raw =NULL; | 289 pNPCTopicTXT_Raw =NULL; |
290 pNPCTopicTXT_Raw = (char *)pEvents_LOD->LoadRaw("npctopic.txt", 0); | 290 pNPCTopicTXT_Raw = (char *)pEvents_LOD->LoadRaw("npctopic.txt", 0); |
291 strtok(pNPCTopicTXT_Raw, "\r"); | 291 strtok(pNPCTopicTXT_Raw, "\r"); |
292 | 292 |
293 for (i=0; i<579; ++i) | 293 for ( i = 1; i <= 579; ++i )//NPC topics count limit |
294 { | 294 { |
295 test_string = strtok(NULL, "\r") + 1; | 295 test_string = strtok(NULL, "\r") + 1; |
296 break_loop = false; | 296 break_loop = false; |
297 decode_step=0; | 297 decode_step=0; |
298 do | 298 do |