Normalize resource names for communications, ships, and planet graphics.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2914 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2008-02-01 02:51:39 +00:00
parent 674d784d49
commit f579d17430
17 changed files with 650 additions and 646 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ def res_encode(pkg, instance, t):
return ((pkg & 0x7ff) << 21) | ((instance & 0x1FFF) << 8) | (t & 0xFF)
def res_encode_str (pkg, instance, t):
return "0x%08xL" % res_encode (p, i, t)
return "0x%08xL" % res_encode (pkg, instance, t)
def res_decode_str (resnum):
return res_decode (int(long(resnum, 16)))