From: Holger Schemel Date: Tue, 20 Oct 2020 22:04:50 +0000 (+0200) Subject: renamed function X-Git-Tag: 4.2.1.0~18 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=05deb9f50dbf596012b2ab0116b95548d2182410;p=rocksndiamonds.git renamed function --- diff --git a/src/libgame/setup.c b/src/libgame/setup.c index 5deb511f..44d6b722 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -1215,7 +1215,7 @@ int numTreeInfoInGroup(TreeInfo *node) return numTreeInfo(getTreeInfoFirstGroupEntry(node)); } -int posTreeInfo(TreeInfo *node) +int getPosFromTreeInfo(TreeInfo *node) { TreeInfo *node_cmp = getTreeInfoFirstGroupEntry(node); int pos = 0; diff --git a/src/libgame/setup.h b/src/libgame/setup.h index 211d7614..38a732f4 100644 --- a/src/libgame/setup.h +++ b/src/libgame/setup.h @@ -267,7 +267,7 @@ boolean validLevelSeries(TreeInfo *); TreeInfo *getFirstValidTreeInfoEntry(TreeInfo *); TreeInfo *getTreeInfoFirstGroupEntry(TreeInfo *); int numTreeInfoInGroup(TreeInfo *); -int posTreeInfo(TreeInfo *); +int getPosFromTreeInfo(TreeInfo *); TreeInfo *getTreeInfoFromPos(TreeInfo *, int); TreeInfo *getTreeInfoFromIdentifier(TreeInfo *, char *); void dumpTreeInfo(TreeInfo *, int); diff --git a/src/screens.c b/src/screens.c index eab76ecc..3638840e 100644 --- a/src/screens.c +++ b/src/screens.c @@ -1745,7 +1745,7 @@ static void gotoTopLevelDir(void) if (leveldir_current->node_parent->node_group->cl_first == -1) { int num_leveldirs = numTreeInfoInGroup(leveldir_current); - int leveldir_pos = posTreeInfo(leveldir_current); + int leveldir_pos = getPosFromTreeInfo(leveldir_current); int num_page_entries = MIN(num_leveldirs, NUM_MENU_ENTRIES_ON_SCREEN); int cl_first, cl_cursor; @@ -4417,7 +4417,7 @@ static void HandleChooseTree(int mx, int my, int dx, int dy, int button, if (button == MB_MENU_INITIALIZE) { int num_entries = numTreeInfoInGroup(ti); - int entry_pos = posTreeInfo(ti); + int entry_pos = getPosFromTreeInfo(ti); align_xoffset = getAlignXOffsetFromTreeInfo(ti); align_yoffset = getAlignYOffsetFromTreeInfo(ti);