Revert "Revert "Warning--""

This reverts commit 927fdce38830ebc5ecea993a0ca74eaeb73e64af.
Revert "popup: Move action handling to separate function."

This reverts commit f1cab8c3ac8b8498e7a4faba21e2b74d56471a67.
Revert "popup: Change clickmap definitions to (x, y, width, height) format."

This reverts commit 0489d10ec5d8df7f10aa9692cc290f168a6ba6aa.
Revert "Clean up game initialization."

This reverts commit 87699e176d90de997faea7e9600b57256f89c302.
Revert "map: Clean up minimap initialization function."

This reverts commit 66c609170540286fe3ff926eeb314443db042215.
Revert "Add macros to check whether a game object index corresponds to an allocated object."

This reverts commit 3b809d51f98a9ce7b40f7c4c5955a34dddf3b2c9.
Revert "Move init_flag_search() to flag.c."

This reverts commit d4f28409f2c770e39023309a693403089f923a50.
Revert "popup: Handle click on quit button."

This reverts commit e7c6d567995ced587bc3cfcddd6e6d995e67aaf7.
Revert "popup: Reorder switch entries."

This reverts commit ab9adf9fec85d49f61d4c48d494c0c7e973eb5f5.
Revert "Allow game loop to be stopped using game_loop_quit()."

This reverts commit 25f88ed0d359323b3219cbf31a2401656d80ef02.
Revert "flag: Fix file header."

This reverts commit a82be774461e572bae849d4b3367df3088af83ef.
Revert "viewport: Implement fast road construction using pathfinder."

This reverts commit 9555c6ae400c73cbdcd0d60060a3e10fff781f3f.
Revert "pathfinder: Add A* pathfinder."

This reverts commit 068dc4b6a1be2638c2df8229e8a0d4eea68a3371.
Revert "viewport: Fix variable names in click handler."

This reverts commit 34deb803afa2e3099370266a81c04ca35adf06fe.
Revert "savegame: Fix loading of map positions in original save game."

This reverts commit 94524dbd8cea7054615f021a84768aa613601906.
Revert "pqueue: Add generic priority queue implementation."

This reverts commit eb55a7698f2bc61fb4395f29240600a753bf0cda.
Revert "Merge map tile data into one struct (map_tile_t)."

This reverts commit df46ecec72915b19aa185cebd853c891a32aeea8.
Revert "Change to map position system that does not depend on interleaved, equal sized map data structs."

This reverts commit 6edca3088c3d2e65407f0add690834520e4da5b1.
Revert "Fix: When loading autosave, don't repeatedly try to save the game again."

This reverts commit a43c9f7762443dad0fb59b75e154b24272c32fdb.
Revert "Fix #45: Save STONECUTTER FREE WALKING state vars in save game."

This reverts commit 956f8e128ba043e1410f45b72df963f0a6f69f61.