Changeset 913

Show
Ignore:
Timestamp:
05/17/08 08:48:11 (4 months ago)
Author:
takkaria
Message:

Avoid a name conflict and fix a warning (const static -> static const).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/trap.c

    r895 r913  
    2424 * Otherwise, match trap power against player armor. 
    2525 */ 
    26 static bool check_hit(int power) 
     26static bool trap_check_hit(int power) 
    2727{ 
    2828        return test_hit(power, p_ptr->ac + p_ptr->to_a, TRUE); 
     
    4242        int feat; 
    4343 
    44         const static int min_level[] = 
     44        static const int min_level[] = 
    4545        { 
    4646                2,              /* Trap door */ 
     
    281281                case FEAT_TRAP_HEAD + 0x08: 
    282282                { 
    283                         if (check_hit(125)) 
     283                        if (trap_check_hit(125)) 
    284284                        { 
    285285                                msg_print("A small dart hits you!"); 
     
    297297                case FEAT_TRAP_HEAD + 0x09: 
    298298                { 
    299                         if (check_hit(125)) 
     299                        if (trap_check_hit(125)) 
    300300                        { 
    301301                                msg_print("A small dart hits you!"); 
     
    313313                case FEAT_TRAP_HEAD + 0x0A: 
    314314                { 
    315                         if (check_hit(125)) 
     315                        if (trap_check_hit(125)) 
    316316                        { 
    317317                                msg_print("A small dart hits you!"); 
     
    329329                case FEAT_TRAP_HEAD + 0x0B: 
    330330                { 
    331                         if (check_hit(125)) 
     331                        if (trap_check_hit(125)) 
    332332                        { 
    333333                                msg_print("A small dart hits you!");