Welcome to the Builder Academy

Question Has anyone else noticed?

More
17 Oct 2022 07:41 #10205 by Bodhi
tbaMUD source code. 
In file act.informative.c, we have the look_at_room function, which calls the list_obj_to_char function to list all objects in the room. Unfortunately, this list is being constructed or displayed in reverse order. That is... the first obj in the list should appear at the top of the list, the second obj should appear second, etcetera.

However, the exact opposite occurs. The first object is displayed at the bottom of the list, the second object id just above the first, etcetera. As if, iterating through a loop/list/array in reverse.

Ordinarily, this wouldn't be an issue. However, if you're standing in a room with a fountain or message board, then any items dropped by a player are listed in the room above the board or fountain. This is not right! We can not have players, literally, moving fountains around the room.

Attachment Screenshotfrom2022-10-1702-34-11.png not found

Please Log in or Create an account to join the conversation.

More
17 Oct 2022 19:57 #10206 by thomas
Replied by thomas on topic Has anyone else noticed?
Nice catch - I suggest a pull request :)
The following user(s) said Thank You: Bodhi

Please Log in or Create an account to join the conversation.

More
14 Dec 2022 17:12 - 14 Dec 2022 17:31 #10239 by doogie
Replied by doogie on topic Has anyone else noticed?
I see this has already been updated on gitub. Cool.
Last edit: 14 Dec 2022 17:31 by doogie.

Please Log in or Create an account to join the conversation.

Time to create page: 0.171 seconds