JANITORIAL: DEVTOOLS: remove unused loop variables

This commit is contained in:
meekee7
2026-02-07 12:33:12 +01:00
committed by GitHub
parent fe2a4156a8
commit 9206489ecb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -296,7 +296,7 @@ void read_room_data(byte *&data, uint16 &totalSize) {
offset += sizeof(RoomResourceOutput);
// Copy over room exits
for (int foo = 0; ; ++foo) {
while (true) {
RoomResourceExit1 *p = (RoomResourceExit1 *) (data + offset);
lureExe.read(p, sizeof(RoomResourceExit1));
if (FROM_LE_16(p->xs) == 0xffff) break;
@@ -1406,7 +1406,7 @@ void writeStarfieldPoints2() {
void writePhrases(const char *name, const CommonPhrase *phrases) {
outputFile->seek(dataOffset);
for (uint idx = 0; phrases->_str; ++idx, ++phrases) {
for (; phrases->_str; ++phrases) {
outputFile->writeString(phrases->_str);
outputFile->writeLong(phrases->_dialogueId);
outputFile->writeLong(phrases->_roomNum);