# | Line 131 | Line 131 | void savePhotonMap (const PhotonMap *pmap, const char | |
---|---|---|
131 | putflt(prim -> dir [j], file); | |
132 | ||
133 | for (j = 0; j < 3; j++) | |
134 | < | putflt(prim -> org [j], file); |
134 | > | putflt(prim -> pos [j], file); |
135 | ||
136 | if (ferror(file)) | |
137 | error(SYSTEM, "error writing primary photon rays"); | |
# | Line 253 | Line 253 | PhotonMapType loadPhotonMap (PhotonMap *pmap, const ch | |
253 | prim -> dir [j] = getflt(file); | |
254 | ||
255 | for (j = 0; j < 3; j++) | |
256 | < | prim -> org [j] = getflt(file); |
256 | > | prim -> pos [j] = getflt(file); |
257 | ||
258 | if (feof(file)) | |
259 | error(SYSTEM, "error reading primary photon rays"); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |