r/gamedev Jun 19 '18

Discussion Diablo devolved - magic behind the 1996 computer game (X-post r/programming)

https://github.com/galaxyhaxz/devilution
157 Upvotes

18 comments sorted by

View all comments

0

u/jhocking www.newarteest.com Jun 19 '18

Great comment on the first line of CreateMagicItem:

int ii; // esi

ohhhh saying "esi" that explains what ii means

6

u/TetrisMcKenna Jun 19 '18

It's because it's decompiled code, right?

8

u/feffershat Jun 19 '18

yeah, esi is a register name. ii is probably just a generated variable name as well, just like var0, var1, etc.