Advertisement
Kapa3a

fix war (razboi)

Nov 29th, 2023
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | Source Code | 0 0
  1. /game/src/cmd_general.cpp
  2. cautam
  3. if (*arg2)
  4. si modificam toata functia  cu
  5. if (*arg2)
  6.     {
  7.         str_to_number(type, arg2);
  8.  
  9.  
  10.         if(type < 0)
  11.         {
  12.             ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<error> can't declare war with type less than zero."));
  13.             return;
  14.         }
  15.  
  16.  
  17.         if (type >= GUILD_WAR_TYPE_MAX_NUM || type == 0)
  18.             type = GUILD_WAR_TYPE_FIELD;
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement