--- ray/src/rt/pmapdump.c 2017/12/09 18:40:43 2.9 +++ ray/src/rt/pmapdump.c 2018/02/08 19:55:02 2.10 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: pmapdump.c,v 2.9 2017/12/09 18:40:43 rschregle Exp $"; +static const char RCSid[] = "$Id: pmapdump.c,v 2.10 2018/02/08 19:55:02 rschregle Exp $"; #endif /* @@ -12,7 +12,7 @@ static const char RCSid[] = "$Id: pmapdump.c,v 2.9 201 supported by the Swiss National Science Foundation (SNSF, #147053) ====================================================================== - $Id: pmapdump.c,v 2.9 2017/12/09 18:40:43 rschregle Exp $ + $Id: pmapdump.c,v 2.10 2018/02/08 19:55:02 rschregle Exp $ */ @@ -25,7 +25,7 @@ static const char RCSid[] = "$Id: pmapdump.c,v 2.9 201 #include "random.h" #include "math.h" -#define PMAPDUMP_REC "$Revision: 2.9 $" +#define PMAPDUMP_REC "$Revision: 2.10 $" /* Defaults */ @@ -195,7 +195,11 @@ int main (int argc, char** argv) pm.numPrimary = getint(sizeof(pm.numPrimary), pmapFile); while (pm.numPrimary-- > 0) { /* Skip source index & incident dir */ - getint(sizeof(pri.srcIdx) + sizeof(pri.dir), pmapFile); + getint(sizeof(pri.srcIdx), pmapFile); +#ifdef PMAP_PRIMARYDIR + /* Skip primary incident dir */ + getint(sizeof(pri.dir), pmapFile); +#endif #ifdef PMAP_PRIMARYPOS /* Skip primary hitpoint */ for (j = 0; j < 3; j++)