Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old April 8, 2019, 13:58   #1
PowerWyrm
Prophet
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,900
PowerWyrm is on a distinguished road
Game cannot handle more than 255 terrain types

Reported by Tangar in this post: http://angband.oook.cz/forum/showpos...32&postcount=7

This is PWMAngband so I checked why this happened. The reason is obvious: the terrain "floor d hills" is exactly number 256 in the f_info feature array. This means there is somewhere where feature is coded on a "byte" and doesn't allow more than 255 terrain types. And I found the culprit:

Code:
struct square {
	byte feat;
	bitflag *info;
	int light;
	s16b mon;
	struct object *obj;
	struct trap *trap;
};
Everywhere else, feature index is coded on an integer. Vanilla code has the same "struct square", so it must also happen in V.
__________________
PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Terrain Nick Vanilla 45 November 13, 2016 22:54
How to handle -more- prompts? poschengbandplayer Vanilla 10 March 26, 2016 17:25
Terrain Nick Vanilla 14 February 23, 2014 00:07
Adding terrain to V Therem Harth Development 14 March 22, 2013 22:15
[ALL variants] Getting main-gcu to handle resizes. CJNyfalt Vanilla 5 May 27, 2007 14:47


All times are GMT +1. The time now is 15:11.


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