Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tile_num_in_direction can be called with either integer or pointer as the origin argument. Fixes #409 #410

Closed
wants to merge 1 commit into from

Conversation

JanSimek
Copy link
Contributor

Both variants are used in the ecdogmet.ssl script:

tile_num_in_direction(self_tile, Random(0, 5), 1);
tile_num_in_direction(dude_obj, Random(0, 5), Random(5, 10));

…s the origin argument. Fixes alexbatalov#409

 Both variants are used in the ecdogmet.ssl script:

 ```
 tile_num_in_direction(self_tile, Random(0, 5), 1);
 tile_num_in_direction(dude_obj, Random(0, 5), Random(5, 10));
 ```
@phobos2077
Copy link
Contributor

phobos2077 commented Jul 26, 2024

This is a script error and a rare one at that. I don't think the opcode itself should be modified to accommodate one broken script.

And in general, it is a bad design to accept a whole object as argument of a function, where you only need one value (tile num). It should accept just the tile, IMO.

@JanSimek
Copy link
Contributor Author

Already fixed in the unofficial patch: BGforgeNet/Fallout2_Unofficial_Patch@55a08f4

@JanSimek JanSimek closed this Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants