Changeset 453:12c71124bbca


Ignore:
Timestamp:
Sep 7, 2013, 1:19:33 PM (7 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Message:

Zero is allowed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/enemies.py

    r446 r453  
    126126        """Simple greedy path finder"""
    127127        def _calc_step(tp, pp):
     128            step = 0
    128129            if (tp < pp):
    129130                step = max(-1, tp - pp)
Note: See TracChangeset for help on using the changeset viewer.