MCPcopy Create free account
hub / github.com/diasurgical/devilution / InitL1Triggers

Function InitL1Triggers

Source/trigs.cpp:162–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void InitL1Triggers()
163{
164 int j, i;
165
166 numtrigs = 0;
167 for (j = 0; j < MAXDUNY; j++) {
168 for (i = 0; i < MAXDUNX; i++) {
169 if (dPiece[i][j] == 129) {
170 trigs[numtrigs]._tx = i;
171 trigs[numtrigs]._ty = j;
172 trigs[numtrigs]._tmsg = WM_DIABPREVLVL;
173 numtrigs++;
174 }
175 if (dPiece[i][j] == 115) {
176 trigs[numtrigs]._tx = i;
177 trigs[numtrigs]._ty = j;
178 trigs[numtrigs]._tmsg = WM_DIABNEXTLVL;
179 numtrigs++;
180 }
181 }
182 }
183 trigflag = FALSE;
184}
185
186#ifndef SPAWN
187void InitL2Triggers()

Callers 1

CreateLevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected