mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 13:10:34 +00:00
Correct the MD16 writing code.
Forgot to test it :P
This commit is contained in:
parent
ab4aec47a7
commit
d3af0b2357
1 changed files with 3 additions and 3 deletions
|
@ -194,10 +194,10 @@ class MDL:
|
|||
return self
|
||||
def write(self, mdl, high=True):
|
||||
if mdl.ident == 'MD16' and high:
|
||||
r = tuple(map(lambda a: a >> 8, self.verts[i].r))
|
||||
r = tuple(map(lambda a: a >> 8, self.r))
|
||||
else:
|
||||
r = tuple(map(lambda a: a & 255, self.verts[i].r))
|
||||
mdl.write_byte(self.r)
|
||||
r = tuple(map(lambda a: a & 255, self.r))
|
||||
mdl.write_byte(r)
|
||||
mdl.write_byte(self.ni)
|
||||
def scale(self, mdl):
|
||||
self.r = tuple(map(lambda x, s, t: int((x - t) / s),
|
||||
|
|
Loading…
Reference in a new issue