Path: chuka.playstation.co.uk!scea!peter_alau@playstation.sony.com From: Dennis Payne Newsgroups: scee.yaroze.programming.2d_graphics,scee.yaroze.beginners Subject: Re: Trying to display a sprite Date: Tue, 23 Feb 1999 20:10:50 -0500 Organization: Identical Software Lines: 11 Message-ID: <36D3519A.3C53E96E@identicalsoftware.com> References: <7av5sm$9po1@chuka.playstation.co.uk> <7av7s5$8jb8@scea> NNTP-Posting-Host: 207.60.36.51 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.33 i586) Xref: chuka.playstation.co.uk scee.yaroze.programming.2d_graphics:898 scee.yaroze.beginners:720 Charles Nicholson wrote: > Your first parameter, "(u_long *)(spriteAdd + 4)" should probably be changed > to > "(u_long *)(spriteAdd + 1)". That shouldn't be necessary. spriteAdd is simply a number at the time of addition. After the addition it is cast to a u_long *. (Personally I'd just define spriteAdd to be 4 more.) Dennis Payne dulsi@identicalsoftware.com