Show
Ignore:
Timestamp:
11/19/08 13:49:31 (17 years ago)
Author:
yumileroy
Message:

[svn] DynamicObject? should only be visible for caster if it is not in distance. However, I do not think this will fix the bug that dynamic object update freezes the server.

Original author: megamage
Date: 2008-11-15 11:56:59-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/trinitycore/CliRunnable.cpp

    r112 r237  
    1111 * This program is distributed in the hope that it will be useful, 
    1212 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1414 * GNU General Public License for more details. 
    1515 * 
    1616 * You should have received a copy of the GNU General Public License 
    1717 * along with this program; if not, write to the Free Software 
    18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
     18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
    1919 */ 
    2020 
     
    5252    printf(temp_buf); 
    5353#else 
    54         printf(str); 
     54    printf(str); 
    5555#endif 
    5656} 
     
    119119    } 
    120120 
    121         return true; 
     121    return true; 
    122122} 
    123123 
     
    127127        return false; 
    128128 
    129         char *character_name_str = strtok((char*)args," "); 
     129    char *character_name_str = strtok((char*)args," "); 
    130130    if(!character_name_str) 
    131                 return false; 
     131        return false; 
    132132 
    133133    std::string character_name = character_name_str; 
    134134    if(!normalizePlayerName(character_name)) 
    135                 return false; 
     135        return false; 
    136136 
    137137    uint64 character_guid; 
    138138    uint32 account_id; 
    139139 
    140         Player *player = objmgr.GetPlayer(character_name.c_str()); 
     140    Player *player = objmgr.GetPlayer(character_name.c_str()); 
    141141    if(player) 
    142142    { 
     
    158158    } 
    159159 
    160         std::string account_name; 
     160    std::string account_name; 
    161161    accmgr.GetName (account_id,account_name); 
    162162 
    163     Player::DeleteFromDB(character_guid, account_id, true);  
     163    Player::DeleteFromDB(character_guid, account_id, true); 
    164164    PSendSysMessage(LANG_CHARACTER_DELETED,character_name.c_str(),GUID_LOPART(character_guid),account_name.c_str(), account_id); 
    165165    return true; 
     
    171171    SendSysMessage(LANG_COMMAND_EXIT); 
    172172    World::m_stopEvent = true; 
    173         return true; 
     173    return true; 
    174174} 
    175175 
     
    228228    char *szPassword = strtok(NULL, " "); 
    229229    if(!szAcc || !szPassword) 
    230                 return false; 
     230        return false; 
    231231 
    232232    // normilized in accmgr.CreateAccount 
     
    257257            return false; 
    258258    } 
    259          
    260         return true; 
     259 
     260    return true; 
    261261} 
    262262 
     
    269269    char *NewLevel = strtok((char*)args, " "); 
    270270    if (!NewLevel) 
    271                 return false; 
     271        return false; 
    272272 
    273273    sLog.SetLogLevel(NewLevel); 
    274         return true; 
     274    return true; 
    275275} 
    276276 
     
    326326            for(int x=0;command_str[x];x++) 
    327327                if(command_str[x]=='\r'||command_str[x]=='\n') 
    328                                 { 
    329                                         command_str[x]=0; 
    330                                         break; 
    331                                 } 
    332  
    333                         if(!*command_str) 
     328            { 
     329                command_str[x]=0; 
     330                break; 
     331            } 
     332 
     333 
     334            if(!*command_str) 
    334335            { 
    335336                printf("TC>"); 
     
    347348        } 
    348349        else if (feof(stdin)) 
     350        { 
    349351            World::m_stopEvent = true; 
     352        } 
    350353    } 
    351354