~croxis/openoutpost/trunk

« back to all changes in this revision

Viewing changes to Legacy.py

  • Committer: David Radford
  • Date: 2010-04-05 20:52:11 UTC
  • Revision ID: croxis@yahoo.com-20100405205211-d3ucp2ky2b95toih
Returned to pre panda1.7.0 functionality. Ready to rollout alpha1

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#            if tile.getXelA(xi,yi) == matcher:
34
34
#                tile.setAlpha(xi,yi,0)
35
35
    # Much better!
 
36
    #print "Alpha val:", alphaColor
36
37
    for x in range(tile.getXSize()):
37
38
        for y in range(tile.getYSize()):
 
39
            #print tile.getXel(x,y)
38
40
            if tile.getXel(x,y) == VBase3D(alphaColor[0], alphaColor[1], alphaColor[2]):
39
41
                pass
 
42
                #print "passing"
40
43
                #tile.setAlpha(x,y,0) 
41
44
            else:
 
45
                #pass
 
46
                #print "Setting alpha to 1!"
42
47
                tile.setAlpha(x,y,1) 
43
48
    return tile