Changeset 365 for trunk/game/utilities


Ignore:
Timestamp:
11/02/09 22:06:08 (10 years ago)
Author:
barra_parpg
Message:

Patch by mvbarracuda:

  • Fix agentXmlGen.py: xoff >> x_off
  • Corrected y shift for player character for better collision detection
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/utilities/agentXmlGen.py

    r328 r365  
    3030    @type delay: string 
    3131    @param delay: Animation delay (used in animation.xml) 
    32     @type xoff: string 
    33     @param xoff: X offset (used in animation.xml) 
     32    @type x_off: string 
     33    @param x_off: X offset (used in animation.xml) 
    3434    @type y_off: string 
    3535    @param y_off: Y offset (used in animation.xml) 
     
    6363                            + '/animation.xml" direction="'  
    6464                            + str(int(angle)) + '" />\n') 
    65                     if not generateAnimation(angle_path,delay,xoff,y_off): 
     65                    if not generateAnimation(angle_path,delay,x_off,y_off): 
    6666                        log.error("Failed to create animation for " + anum\ 
    6767                                   + " (angle: " + angle + ")") 
     
    9898    return 0 
    9999 
    100 def generateAnimation(path, delay, xoff, y_off): 
     100def generateAnimation(path, delay, x_off, y_off): 
    101101    """ Generate animation.xml for a given path. 
    102102    @type path: string  
Note: See TracChangeset for help on using the changeset viewer.