delorie.com/archives/browse.cgi | search |
From: | Matthew Heyman <kay DOT heyman AT airmail DOT net> |
Newsgroups: | comp.os.msdos.djgpp,comp.graphics.algorithms |
Subject: | Re: struct problem |
Date: | Mon, 09 Aug 1999 20:06:21 +0000 |
Organization: | Airnews.net! at Internet America |
Lines: | 22 |
Message-ID: | <8432818566957DB4.DF5776918DB4D437.AD3715803EC19E27@lp.airnews.net> |
X-Orig-Message-ID: | <37AF34BD DOT 7D9B AT airmail DOT net> |
References: | <A7083B60FEDED7E0 DOT 7F2CBC07CD9B5AB8 DOT 019CE2E485CE12C4 AT lp DOT airnews DOT net> <37AF5947 DOT 66951F05 AT NOSPAMthepentagon DOT com> |
Abuse-Reports-To: | abuse at airmail.net to report improper postings |
NNTP-Proxy-Relay: | library2.airnews.net |
NNTP-Posting-Time: | Mon Aug 9 20:06:42 1999 |
NNTP-Posting-Host: | !bE`)1k-XKV.%p` (Encoded at Airnews!) |
Mime-Version: | 1.0 |
X-Mailer: | Mozilla 3.01C-KIT (Win95; U) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Satriani wrote: > > Try this instead: > > vert_3d p000; > vert_3d p000 = {0,10,20}; > > OR, assign the vector within a function. > > Justin > That works now, but when I try to access such variables like in this piece of code here... Zoff = player.pz - p000.z I get the same problem. This is inside a function, mind you. The player.pz is the players position within the game, using only int. I don't know enough about structs to fix the problem..... Matthew Heyman
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |