pastebin - collaborative debugging tool
kpaste.net RSS


fix warping
Posted by Anonymous on Fri 25th Feb 2011 12:09
raw | new post

  1. Index: src/map/atcommand.c
  2. ===================================================================
  3. --- src/map/atcommand.c (revision 14724)
  4. +++ src/map/atcommand.c (working copy)
  5. @@ -416,11 +416,14 @@
  6.         char map_name[MAP_NAME_LENGTH_EXT];
  7.         unsigned short mapindex;
  8.         int x = 0, y = 0;
  9.         int m = -1;
  10. +if(battle_config.any_warp_GM_min_level > pc_isGM(sd))
  11. +       if (sd->npc_id || sd->vender_id || sd->state.trading || sd->state.storage_flag)
  12. +               return -1;
  13.  
  14. @@ -2162,11 +2162,14 @@
  15.         int i;
  16.         int town;
  17.         char map_name[MAP_NAME_LENGTH];
  18.         int m;
  19. +if(battle_config.any_warp_GM_min_level > pc_isGM(sd))
  20. +       if (sd->npc_id || sd->vender_id || sd->state.trading || sd->state.storage_flag)
  21. +               return -1;

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at