summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7d3cda1)
raw | patch | inline | side by side (parent: 7d3cda1)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sat, 17 Apr 2021 11:01:14 +0000 (14:01 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sat, 17 Apr 2021 11:01:14 +0000 (14:01 +0300) |
src/files.c | patch | blob | history |
diff --git a/src/files.c b/src/files.c
index b46856d21fcc8eb63d3697dba10bf37b8d8a58ec..913a5eea0358792653067faeab92a248f74eee7a 100644 (file)
--- a/src/files.c
+++ b/src/files.c
WADRES_getname(r, n);
}
+// Get sprite resource id.
+// Sprite name has following format:
+// (nnnn)('A'+s)('0'+d)[('A'+s)('0'+d)]
+// Letter means animation frame
+// A for first, B for second...
+// Number means direction
+// 0 = front
+// 1 = left
+// 2 = right
+// Optional part means that this file can be used for differnt frame/direction.
+// Note that if found FRONT direction for this frame than it UNCONDITIONALLY used.
+// Note that search performed between markers S_START and S_END in order as paced in wad.
+// int n[4] -- sprite name
+// int s -- sprite frame
+// int d -- sprite direction
+// char *dir -- out flag "alternative used" (
int F_getsprid (const char n[4], int s, int d, char *dir) {
s += 'A';
d += '0';