viewing paste unit.c raw doc | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- HEAD
+++ Modified In Working Tree
@@ -134,7 +134,7 @@
                return 0;
        }
        ud->walktimer = INVALID_TIMER;
-       if( bl->prev == NULL ) return 0; // block_list ���甲���Ă���̂ňړ���~����
+       if( bl->prev == NULL ) return 0; // Stop moved because it is missing from the block_list
 
        if(ud->walkpath.path_pos>=ud->walkpath.path_len)
                return 0;
@@ -1001,8 +1001,8 @@
        int temp = 0;
 
        nullpo_ret(src);
-       if(status_isdead(src))
-               return 0; // ����ł��Ȃ���
+       if( status_isdead(src) )
+               return 0; //Do not continue source is dead
 
        sd = BL_CAST(BL_PC, src);
        ud = unit_bl2ud(src);
@@ -1088,7 +1088,7 @@
                return 0;
 
        tstatus = status_get_status_data(target);
-       //���O�̃X�L���󋵂̋L�^
+       //The previous record of skill status
        if(sd) {
                switch(skill_num){
                case SA_CASTCANCEL:
@@ -1332,7 +1332,7 @@
 
        nullpo_ret(src);
 
-       if(!src->prev) return 0; // map ��ɑ��݂��邩
+       if(!src->prev) return 0; // Exists on the map
        if(status_isdead(src)) return 0;
 
        sd = BL_CAST(BL_PC, src);
@@ -1351,7 +1351,7 @@
                if( skillnotok(skill_num, sd) || !skill_check_condition_castbegin(sd, skill_num, skill_lv) )
                        return 0;
                /**
-                * "WHY IS IT HEREE": pneuma cannot be cancelled past this point, the client displays the animation even,
+                * "WHY IS IT HERE": pneuma cannot be cancelled past this point, the client displays the animation even,
                 * if we cancel it from nodamage_id, so it has to be here for it to not display the animation.
                 **/
                if( skill_num == AL_PNEUMA && map_getcell(src->m, skill_x, skill_y, CELL_CHKLANDPROTECTOR) ) {
@@ -1369,7 +1369,7 @@
                return 0;
        }
 
-       /* �˒��Ə�Q���`�F�b�N */
+       /* Check range and obstacle */
        bl.type = BL_NUL;
        bl.m = src->m;
        bl.x = skill_x;
@@ -1472,8 +1472,8 @@
 }
 
 /*==========================================
- * �U���v��
- * type��1�Ȃ�p���U��
+ * Attack request
+ * If type is an ongoing attack
  *------------------------------------------*/
 int unit_attack(struct block_list *src,int target_id,int continuous)
 {
@@ -1560,7 +1560,7 @@
 {
        nullpo_retr(false, bl);
 
-       if( bl->x==x && bl->y==y )      // �����}�X
+       if( bl->x==x && bl->y==y )      //Same place
                return true;
 
        return path_search(NULL,bl->m,bl->x,bl->y,x,y,easy,CELL_CHKNOREACH);
@@ -1662,7 +1662,7 @@
 }
 
 /*==========================================
- * PC�̍U�� (timer�֐�)
+ * Attack of the PC (function timer)
  *------------------------------------------*/
 static int unit_attack_timer_sub(struct block_list* src, int tid, unsigned int tick)
 {
@@ -1867,7 +1867,7 @@
        return 1;
 }
 
-// unit_data �̏�����
+// unit_data initialization process
 void unit_dataset(struct block_list *bl)
 {
        struct unit_data *ud;
@@ -1926,7 +1926,7 @@
 }
 
 /*==========================================
- * �����ڂ̃T�C�Y��ύX����
+ * To change the size of the object (player or mob only)
  *------------------------------------------*/
 int unit_changeviewsize(struct block_list *bl,short size)
 {
Viewed 397 times, submitted by lighta.