Skip to content

refactor: rename single-char variables in find_replacement (#3002)#3003

Merged
bylins merged 1 commit intomasterfrom
issue.3002
Mar 21, 2026
Merged

refactor: rename single-char variables in find_replacement (#3002)#3003
bylins merged 1 commit intomasterfrom
issue.3002

Conversation

@bylins
Copy link
Owner

@bylins bylins commented Mar 21, 2026

Rename cryptic single-character variables to meaningful names in the 2400-line find_replacement() function:
c -> mob (CharData* cast from go or found by name)
o -> obj (ObjData* cast from go or found by name)
r -> room (RoomData* cast from go or found by name)

The previously separate UID-resolved obj/room variables were merged with the go-cast ones since they are never used simultaneously in the same code paths.

Rename cryptic single-character variables to meaningful names:
  c -> mob, o -> obj, r -> room
  previous obj -> tmp_obj, previous room -> tmp_room

Done in order per issue: first obj->tmp_obj, room->tmp_room,
then c->mob, o->obj, r->room. Each step verified by compiler.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bylins bylins merged commit ec888b3 into master Mar 21, 2026
20 checks passed
@bylins bylins deleted the issue.3002 branch March 21, 2026 15:20
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.

1 participant