Ignore:
Timestamp:
07/22/10 17:56:23 (9 years ago)
Author:
beliar
Message:

Patch by Beliar.

  • The default z-position of agents that have an object type of "MapItem?" is now -0.1. This fixes the issue that items are rendered in front of other agents.
  • Removed the explicit definition of a z-position from the *_agent.yaml files. They now use either the default position of agents (already present before this commit) or items, depending on the object type.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/gamemodel.py

    r592 r594  
    398398        x_pos = agent["Position"][0] 
    399399        y_pos = agent["Position"][1] 
    400         z_pos = agent["Position"][2] if len(agent["Position"]) == 3 else 0.0 
     400        z_pos = agent["Position"][2] if len(agent["Position"]) == 3 \ 
     401                                        else -0.1 if object_type == "MapItem" \ 
     402                                        else 0.0   
    401403        stack_pos = agent["Stackposition"] if \ 
    402404                        agent.has_key("StackPosition") \ 
Note: See TracChangeset for help on using the changeset viewer.