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

[svn] * Updated to 6743 and 685

Moved language id used by Arena to a higher place to solve conflicts
Added the empty script folders

Original author: Neo2003
Date: 2008-10-09 08:42:22-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/WorldSession.cpp

    r6 r28  
    441441} 
    442442 
     443void WorldSession::SendNotification(int32 string_id,...) 
     444{ 
     445    char const* format = GetMangosString(string_id); 
     446    if(format) 
     447    { 
     448        va_list ap; 
     449        char szStr [1024]; 
     450        szStr[0] = '\0'; 
     451        va_start(ap, format); 
     452        vsnprintf( szStr, 1024, format, ap ); 
     453        va_end(ap); 
     454 
     455        WorldPacket data(SMSG_NOTIFICATION, (strlen(szStr)+1)); 
     456        data << szStr; 
     457        SendPacket(&data); 
     458    } 
     459} 
     460 
    443461const char * WorldSession::GetMangosString( int32 entry ) 
    444462{