Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Development (http://angband.oook.cz/forum/forumdisplay.php?f=10)
-   -   Finding old commits? (http://angband.oook.cz/forum/showthread.php?t=9418)

wobbly May 9, 2019 10:26

Finding old commits?
 
Hi I'm looking for the old commit where lava was added into the game. Is there an easy way to find this?

Pete Mack May 9, 2019 10:36

git history if terrain.txt.
https://github.com/angband/angband/c...ta/terrain.txt

wobbly May 9, 2019 11:58

Thanks, though I can't find it there. Presumably lava is older then the branch? I can see it's there already in 4.0

Found what was stuffing me up anyway, this line in cave-map.c

Code:

assert((int) g->f_idx <= FEAT_PASS_RUBBLE);
seems to mean any new terrain has to go before passable rubble in terrain.txt

Nick May 9, 2019 12:22

Quote:

Originally Posted by wobbly (Post 138323)
Thanks, though I can't find it there. Presumably lava is older then the branch? I can see it's there already in 4.0

Found what was stuffing me up anyway, this line in cave-map.c

Code:

assert((int) g->f_idx <= FEAT_PASS_RUBBLE);
seems to mean any new terrain has to go before passable rubble in terrain.txt

Thanks, that's really poor coding; I'll file it as a bug.


All times are GMT +1. The time now is 12:07.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.