OSDN Git Service

index on dev20110528_setting_reduce: 9817594 フィールド名修正
[coroid/inqubus.git] / vhook / process.c
index 008c774..cb9498c 100644 (file)
@@ -7,14 +7,18 @@
 //\83v\83\8d\83Z\83X\r
 int process(DATA* data,SDL_Surface* surf,const int now_vpos){\r
        //\83\86\81[\83U\83R\83\81\83\93\83g\r
-       if(data->enable_user_comment){\r
-               if(!chat_process(data,surf,now_vpos)){\r
+       if(data->user_comment.enable){\r
+               if(!chat_process(&data->user_comment,surf,now_vpos)){\r
                        fputs("[process/process]failed to process comment.\n",data->log);\r
                        return FALSE;\r
                }\r
        }\r
        //\83I\81[\83i\83R\83\81\83\93\83g\r
-       if(data->enable_owner_comment){\r
+       if(data->owner_comment.enable){\r
+               if(!chat_process(&data->owner_comment,surf,now_vpos)){\r
+                       fputs("[process/process]failed to process comment.\n",data->log);\r
+                       return FALSE;\r
+               }\r
        }\r
        return TRUE;\r
 }\r