diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-29 16:26:25 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-29 16:26:25 +0000 |
commit | 9ddc6e0d5208820a374f3bc9b9c5678e013535b2 (patch) | |
tree | 8f536daa9dd1eabd890e1bb97235fec2cad94296 /src/game.cpp | |
parent | 1265eb758eedb57b8a66d6ebee8f03c22672586c (diff) | |
download | mana-9ddc6e0d5208820a374f3bc9b9c5678e013535b2.tar.gz mana-9ddc6e0d5208820a374f3bc9b9c5678e013535b2.tar.bz2 mana-9ddc6e0d5208820a374f3bc9b9c5678e013535b2.tar.xz mana-9ddc6e0d5208820a374f3bc9b9c5678e013535b2.zip |
Ported NPC list dialog to Guichan.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/game.cpp b/src/game.cpp index 1c12a5d9..eb2a99a5 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -871,22 +871,23 @@ void do_parse() { // List in NPC dialog case 0x00b7: current_npc = RFIFOL(4); - //alert(RFIFOP(8),"","","","",0,0); + // Hammerbear: Second argument here shouldn't be neccesary, instead + // make sure the string is \0 terminated. //parse_items(RFIFOP(8), RFIFOW(2)); - parse_items(RFIFOP(8)); + npcListDialog->parseItems(RFIFOP(8)); RFIFOW(2); - show_npc_dialog = 5; + npcListDialog->setVisible(true); break; // Look change case 0x00c3: // Change hair color - if(RFIFOB(6)==6) { + if (RFIFOB(6) == 6) { node = find_node(RFIFOL(2)); node->hair_color = RFIFOB(7); /*char prova[100]; sprintf(prova, "%i %i %i", RFIFOL(2), RFIFOB(6), RFIFOB(7)); alert(prova,"","","","",0,0);*/ - } else if(RFIFOB(6)==1) { + } else if (RFIFOB(6) == 1) { node = find_node(RFIFOL(2)); node->hair_style = RFIFOB(7); } |